com.ximpleware.transcode
Class ISO8859_1Coder
java.lang.Object
com.ximpleware.transcode.ISO8859_1Coder
public class ISO8859_1Coder
- extends Object
|
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)
Write the iso-8859-1 representation of ch into outputstrem |
static int |
getLen(int ch)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISO8859_1Coder
public ISO8859_1Coder()
getLen
public static int getLen(int ch)
throws TranscodeException
- Throws:
TranscodeException
decode
public static long decode(byte[] input,
int offset)
encode
public static 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
- Write the iso-8859-1 representation of ch into outputstrem
- Parameters:
os - offset - ch -
- Throws:
IOException
TranscodeException
Copyright © 2013. All Rights Reserved.