|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.util.io.CharacterConvertor
com.prosyst.util.io.CharacterConvertor_UTF8
public class CharacterConvertor_UTF8
| Constructor Summary | |
|---|---|
CharacterConvertor_UTF8()
|
|
| Method Summary | |
|---|---|
void |
convert(byte[] input,
int off1,
int len1,
char[] output,
int off2,
int len2,
int[] result)
Converts the input bytes, using the specified encoding into unicode chars. |
void |
convert(char[] input,
int off1,
int len1,
byte[] output,
int off2,
int len2,
int[] result)
Converts the input chars, using the specified encoding into bytes in the given range. |
java.lang.String |
getCharacterEncoding()
Gets the identifier String of the encoding. |
int |
getMaxBytesPerChar()
Gets the maximum bytes that may be used for the conversion of a single char, using this CharacterConvertor's encoding. |
| Methods inherited from class com.prosyst.util.io.CharacterConvertor |
|---|
get, getDefaultEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterConvertor_UTF8()
| Method Detail |
|---|
public void convert(char[] input,
int off1,
int len1,
byte[] output,
int off2,
int len2,
int[] result)
throws java.io.IOException
CharacterConvertor
convert in class CharacterConvertorinput - characters to be convertedoff1 - offset position in the input arrat of the first
character to be convertedlen1 - count of characters to be convertedoutput - where output bytes are putoff2 - offset of the first output bytelen2 - count of bytes that may be used for output conversionresult - a non-null two element int[], which holds the result lengths
from the conversion: result[0] contains the number of chars converted
and result[1] - the number of bytes that are result of the conversion
java.io.IOException - if there's some error during conversion
public void convert(byte[] input,
int off1,
int len1,
char[] output,
int off2,
int len2,
int[] result)
throws java.io.IOException
CharacterConvertor
convert in class CharacterConvertorinput - bytes to be convertedoff1 - offset position in the input arrat of the first
byte to be convertedlen1 - count of bytes to be convertedoutput - where output chars are putoff2 - offset of the first output charlen2 - count of chars that may be used for output conversionresult - a non-null two element int[], which holds the result lengths
from the conversion: result[0] contains the number of bytes converted
and result[1] - the number of chars that are result of the conversion
java.io.IOException - if there's some error during conversionpublic int getMaxBytesPerChar()
CharacterConvertor
getMaxBytesPerChar in class CharacterConvertorpublic java.lang.String getCharacterEncoding()
CharacterConvertor
getCharacterEncoding in class CharacterConvertor
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||