com.ximpleware.transcode
Class ASCII_Coder
java.lang.Object
com.ximpleware.transcode.ASCII_Coder
public class ASCII_Coder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASCII_Coder
public ASCII_Coder()
getLen
public static final int getLen(int ch)
throws TranscodeException
- Parameters:
ch -
- Returns:
-
- Throws:
TranscodeException
decode
public static final long decode(byte[] input,
int offset)
- Parameters:
input - offset -
- Returns:
- a 64-bit integer upper 32 bits is offset value for
lower 32 bits is the UCS char
encode
public static final int encode(byte[] output,
int offset,
int ch)
- Parameters:
output - offset - ch -
- Returns:
encodeAndWrite
public static final void encodeAndWrite(OutputStream os,
int ch)
throws IOException,
TranscodeException
- Parameters:
os - offset - ch -
- Throws:
IOException
TranscodeException
Copyright © 2013. All Rights Reserved.