All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----cryptix.util.mime.ISOLatin1
Note that class contains only static functions, and has no public constructor.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
toByteArray(s, 0, s.length()).
toByteArray(s),
but throws an IllegalArgumentException if any of the
characters in s are outside the range \u0000 to \u00FF.
toByteArray(s, offset, length),
but throws an IllegalArgumentException if any of the
characters in s are outside the range \u0000 to \u00FF.
toString(b, 0, b.length).
public static byte[] toByteArray(String s,
int offset,
int length)
This conversion function is neccessary because Java 1.1+ uses machine dependent char-to-byte and byte-to-char conversions. This is normally a useful feature, allowing machine independence. In order to maintain backwards compatibility with pre-Java conventions, we implement our own machine-independent deterministic converter.
public static byte[] toByteArray(String s)
toByteArray(s, 0, s.length()).
public static byte[] toByteArrayLossless(String s,
int offset,
int length)
toByteArray(s, offset, length),
but throws an IllegalArgumentException if any of the
characters in s are outside the range \u0000 to \u00FF.
public static byte[] toByteArrayLossless(String s)
toByteArray(s),
but throws an IllegalArgumentException if any of the
characters in s are outside the range \u0000 to \u00FF.
public static String toString(byte b[],
int offset,
int length)
This conversion function is neccessary because Java 1.1+ uses machine dependent char-to-byte and byte-to-char conversions. This is normally a useful feature, allowing machine independence. In order to maintain backwards compatibility with pre-Java conventions, we implement our own machine-independent deterministic converter.
public static String toString(byte b[])
toString(b, 0, b.length).
All Packages Class Hierarchy This Package Previous Next Index