com.ximpleware.transcode
Class ASCII_Coder

java.lang.Object
  extended by com.ximpleware.transcode.ASCII_Coder

public class ASCII_Coder
extends Object


Constructor Summary
ASCII_Coder()
           
 
Method Summary
static long decode(byte[] input, int offset)
           
static int encode(byte[] output, int offset, int ch)
           
static void encodeAndWrite(OutputStream os, int ch)
           
static int getLen(int ch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASCII_Coder

public ASCII_Coder()
Method Detail

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.