| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| private static int | countNonZeroAsciiLatin1(byte[] ba, int off, int len)
Count the number of non-zero ascii chars in the range. |
| private static int | countNonZeroAsciiUTF16(byte[] ba, int off, int strlen)
Count the number of leading non-zero ascii chars in the range. |
| pack-priv static int | countPositives(byte[]
a byte array ba, int the index of the first byte to start reading from off, int the total number of bytes to read len)Count the number of leading positive bytes in the range. |
| private static int | |
| pack-priv static int | Returns: the total number of characters successfully encodedthe source character array sa, int the index of the source array to start reading from sp, byte[] the target byte array da, int the index of the target array to start writing to dp, int the maximum number of characters to be encoded len)Encodes as many ASCII codepoints as possible from the source character array into the destination byte array, assuming that the encoding is ASCII compatible. |
| pack-priv static int | |
| pack-priv static int | Returns: the total number of characters (not bytes!) successfully encodedthe source byte array containing characters encoded in UTF-16 sa, int the index of the character (not byte!) from the source array to start reading from sp, byte[] the target byte array da, int the index of the target array to start writing to dp, int the maximum number of characters (not bytes!) to be encoded len)Encodes as many ISO-8859-1 codepoints as possible from the source byte array containing characters encoded in UTF-16, into the destination byte array, assuming that the encoding is ISO-8859-1 compatible. |
| private static int | |
| pack-priv static boolean |
| StringCoding | back to summary |
|---|---|
| private StringCoding() | |
| countNonZeroAscii | back to summary |
|---|---|
| pack-priv static int countNonZeroAscii(String s) Count the number of leading non-zero ascii chars in the range. | |
| countNonZeroAsciiLatin1 | back to summary |
|---|---|
| private static int countNonZeroAsciiLatin1(byte[] ba, int off, int len) Count the number of non-zero ascii chars in the range. | |
| countNonZeroAsciiUTF16 | back to summary |
|---|---|
| private static int countNonZeroAsciiUTF16(byte[] ba, int off, int strlen) Count the number of leading non-zero ascii chars in the range. | |
| countPositives | back to summary |
|---|---|
| pack-priv static int countPositives(byte[] ba, int off, int len) Count the number of leading positive bytes in the range. Implementation Specification the implementation must return len if there are no negative bytes in the range. If there are negative bytes, the implementation must return a value that is less than or equal to the index of the first negative byte in the range.
| |
| countPositives0 | back to summary |
|---|---|
private static int countPositives0(byte[] ba, int off, int len)
| |
| encodeAsciiArray | back to summary |
|---|---|
| pack-priv static int encodeAsciiArray(char[] sa, int sp, byte[] da, int dp, int len) Encodes as many ASCII codepoints as possible from the source character array into the destination byte array, assuming that the encoding is ASCII compatible.
| |
| encodeAsciiArray0 | back to summary |
|---|---|
pack-priv static int encodeAsciiArray0(char[] sa, int sp, byte[] da, int dp, int len)
| |
| encodeISOArray | back to summary |
|---|---|
| pack-priv static int encodeISOArray(byte[] sa, int sp, byte[] da, int dp, int len) Encodes as many ISO-8859-1 codepoints as possible from the source byte array containing characters encoded in UTF-16, into the destination byte array, assuming that the encoding is ISO-8859-1 compatible.
| |
| encodeISOArray0 | back to summary |
|---|---|
private static int encodeISOArray0(byte[] sa, int sp, byte[] da, int dp, int len)
| |
| hasNegatives | back to summary |
|---|---|
| pack-priv static boolean hasNegatives(byte[] ba, int off, int len) | |