Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sun.io.CharToByteConverter

27 views
Skip to first unread message

Chris Hinton

unread,
Apr 24, 1998, 3:00:00 AM4/24/98
to

Are there other classes that provide the functionality that
'sun.io.CharToByteConverter' and 'sun.io.ByteToCharConverter' provide? I am
using those right now, but the are flagged as 'impure' by purecheck.

--
Chris Hinton
Sr. Software Developer
Wall Data, Incorporated

dIon Gillard

unread,
May 1, 1998, 3:00:00 AM5/1/98
to Chris Hinton
How about:

String

public String(byte bytes[],
String enc) throws UnsupportedEncodingException

Construct a new String by converting the specified array of bytes using
the specified character encoding. The length of
the new String is a function of the encoding, and hence may not be equal
to the length of the byte array.

Parameters:
bytes - The bytes to be converted into characters
enc - A character-encoding name
Throws: UnsupportedEncodingException
If the named encoding is not supported

--
dIon Gillard
Sun Certified Java 1.1 Programmer
Work: http://www.multitask.com.au/
NetRexx: http://www.multitask.com.au/netrexx/
VisualNetRexx: http://www.trongus.com/VisualNetRexx/

vcard.vcf
0 new messages