com.compoze.collab.util
Class ByteToCharUtf7
java.lang.Object
com.compoze.collab.util.ByteToCharUtf7
public class ByteToCharUtf7
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteToCharUtf7
public ByteToCharUtf7()
- Constructs a ByteToCharUtf7.
getCharacterEncoding
public String getCharacterEncoding()
flush
public int flush(char[] cChars,
int iOff,
int iLen)
throws ByteToCharUtf7.ConversionBufferFullException
- Add any leftover characters to the output buffer.
- Parameters
cChars
- the output bufferiOff
- the offset in cChars to flush toiLen
- the length of cChars to use
- Returns
- the number of characters added to cChars
- Throws
ByteToCharUtf7.ConversionBufferFullException
reset
public void reset()
convert
public int convert(byte[] yBytes,
int iByteStart,
int iByteEnd,
char[] cChars,
int iCharStart,
int iCharEnd)
throws ByteToCharUtf7.ConversionBufferFullException,
ByteToCharUtf7.MalformedInputException
- Throws
ByteToCharUtf7.ConversionBufferFullException
ByteToCharUtf7.MalformedInputException
getMaxCharsPerByte
public int getMaxCharsPerByte()
convertAll
public char[] convertAll(byte[] bBytes)
throws ByteToCharUtf7.MalformedInputException
- Throws
ByteToCharUtf7.MalformedInputException
nextByteIndex
public int nextByteIndex()
nextCharIndex
public int nextCharIndex()
main
public static void main(String[] args)
throws UnsupportedEncodingException,
CharConversionException
- Throws
UnsupportedEncodingException
CharConversionException
Copyright © 2006 BEA Systems, Inc. All Rights Reserved