jd.io
Class CharToByteConverter

java.lang.Object
  extended byjd.io.CharToByteConverter
Direct Known Subclasses:
CharToByteUtf8

public abstract class CharToByteConverter
extends Object


Field Summary
protected  int badInputLength_
           
protected  int byteOff_
           
protected  int charOff_
           
 
Constructor Summary
CharToByteConverter()
           
 
Method Summary
abstract  int convert(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd)
           
abstract  int flush(byte[] output, int outStart, int outEnd)
           
abstract  String getCharacterEncoding()
           
abstract  int getMaxBytesPerChar()
           
 int nextByteIndex()
           
 int nextCharIndex()
           
abstract  void reset()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

charOff_

protected int charOff_

byteOff_

protected int byteOff_

badInputLength_

protected int badInputLength_
Constructor Detail

CharToByteConverter

public CharToByteConverter()
Method Detail

getCharacterEncoding

public abstract String getCharacterEncoding()

convert

public abstract int convert(char[] input,
                            int inStart,
                            int inEnd,
                            byte[] output,
                            int outStart,
                            int outEnd)
                     throws CharConversionException
Throws:
CharConversionException

flush

public abstract int flush(byte[] output,
                          int outStart,
                          int outEnd)
                   throws CharConversionException
Throws:
CharConversionException

reset

public abstract void reset()

getMaxBytesPerChar

public abstract int getMaxBytesPerChar()

nextCharIndex

public int nextCharIndex()

nextByteIndex

public int nextByteIndex()

toString

public String toString()