com.ximpleware.transcode
Class Transcoder
java.lang.Object
com.ximpleware.transcode.Transcoder
public class Transcoder
- extends Object
|
Method Summary |
static long |
decode(byte[] input,
int offset,
int input_encoding)
|
static int |
encode(byte[] output,
int offset,
int ch,
int output_encoding)
|
static void |
encodeAndWrite(OutputStream os,
int ch,
int output_encoding)
|
static int |
getLen(int ch,
int output_encoding)
|
static int |
getOutLength(byte[] input,
int offset,
int length,
int input_encoding,
int output_encoding)
|
static byte[] |
transcode(byte[] input,
int offset,
int length,
int input_encoding,
int output_encoding)
|
static void |
transcodeAndFill(byte[] input,
byte[] output,
int offset,
int length,
int input_encoding,
int output_encoding)
Fill the byte array with transcoded characters |
static int |
transcodeAndFill2(int initOutPosition,
byte[] input,
byte[] output,
int offset,
int length,
int input_encoding,
int output_encoding)
|
static void |
transcodeAndWrite(byte[] input,
OutputStream os,
int offset,
int length,
int input_encoding,
int output_encoding)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transcoder
public Transcoder()
transcode
public static byte[] transcode(byte[] input,
int offset,
int length,
int input_encoding,
int output_encoding)
throws TranscodeException
- Parameters:
input - offset - length - input_encoding - output_encoding -
- Returns:
-
- Throws:
TranscodeException
getOutLength
public static final int getOutLength(byte[] input,
int offset,
int length,
int input_encoding,
int output_encoding)
throws TranscodeException
- Parameters:
input - offset - length - input_encoding - output_encoding -
- Returns:
-
- Throws:
TranscodeException
transcodeAndFill
public static final void transcodeAndFill(byte[] input,
byte[] output,
int offset,
int length,
int input_encoding,
int output_encoding)
throws TranscodeException
- Fill the byte array with transcoded characters
- Parameters:
input - output - offset - length - input_encoding - output_encoding -
- Throws:
TranscodeException
transcodeAndFill2
public static final int transcodeAndFill2(int initOutPosition,
byte[] input,
byte[] output,
int offset,
int length,
int input_encoding,
int output_encoding)
throws TranscodeException
- Throws:
TranscodeException
transcodeAndWrite
public static final void transcodeAndWrite(byte[] input,
OutputStream os,
int offset,
int length,
int input_encoding,
int output_encoding)
throws TranscodeException,
IOException
- Throws:
TranscodeException
IOException
getLen
public static final int getLen(int ch,
int output_encoding)
throws TranscodeException
- Parameters:
ch - output_encoding -
- Returns:
-
- Throws:
TranscodeException
decode
public static final long decode(byte[] input,
int offset,
int input_encoding)
throws TranscodeException
- Parameters:
input - offset - input_encoding -
- Returns:
-
- Throws:
TranscodeException
encode
public static final int encode(byte[] output,
int offset,
int ch,
int output_encoding)
throws TranscodeException
- Parameters:
output - offset - ch - output_encoding -
- Returns:
-
- Throws:
TranscodeException
encodeAndWrite
public static final void encodeAndWrite(OutputStream os,
int ch,
int output_encoding)
throws TranscodeException,
IOException
- Throws:
TranscodeException
IOException
Copyright © 2013. All Rights Reserved.