special delimiter codes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

special delimiter codes

ponderMuse
Using the Delimiter class, how would I set the hex codes: 1C, 1D and 1F as Segment delimiter, Field delimiter and Component delimiter respectively? i.e. what would be their String equivalents?

Thanks in advance,
PM.
Reply | Threaded
Open this post in threaded view
|

Re: special delimiter codes

ponderMuse
I have set the Delimiters as follows:

Delimiters delimiters = new Delimiters();
delimiters.setSegment(String.valueOf((char) 28));
delimiters.setField(String.valueOf((char) 29));
delimiters.setComponent(String.valueOf((char) 31));

PM.