com.waveset.util
Class URLUTF8Decoder.ByteToCharConverter

java.lang.Object
  extended bycom.waveset.util.URLUTF8Decoder.ByteToCharConverter
Direct Known Subclasses:
URLUTF8Decoder.ByteToCharUTF8
Enclosing class:
URLUTF8Decoder

public abstract static class URLUTF8Decoder.ByteToCharConverter
extends java.lang.Object


Field Summary
protected  int badInputLength
           
protected  int byteOff
           
protected  int charOff
           
protected  char[] subChars
           
protected  boolean subMode
           
 
Constructor Summary
URLUTF8Decoder.ByteToCharConverter()
           
 
Method Summary
abstract  int convert(byte[] abyte0, int i, int j, char[] ac, int k, int l)
           
abstract  int flush(char[] ac, int i, int j)
           
 int getBadInputLength()
           
 int getMaxCharsPerByte()
           
 int nextByteIndex()
           
 int nextCharIndex()
           
abstract  void reset()
           
 void setSubstitutionChars(char[] ac)
           
 void setSubstitutionMode(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subMode

protected boolean subMode

subChars

protected char[] subChars

charOff

protected int charOff

byteOff

protected int byteOff

badInputLength

protected int badInputLength
Constructor Detail

URLUTF8Decoder.ByteToCharConverter

public URLUTF8Decoder.ByteToCharConverter()
Method Detail

convert

public abstract int convert(byte[] abyte0,
                            int i,
                            int j,
                            char[] ac,
                            int k,
                            int l)
                     throws java.io.CharConversionException
Throws:
java.io.CharConversionException

flush

public abstract int flush(char[] ac,
                          int i,
                          int j)
                   throws java.io.CharConversionException
Throws:
java.io.CharConversionException

reset

public abstract void reset()

getMaxCharsPerByte

public int getMaxCharsPerByte()

getBadInputLength

public int getBadInputLength()

nextCharIndex

public int nextCharIndex()

nextByteIndex

public int nextByteIndex()

setSubstitutionMode

public void setSubstitutionMode(boolean flag)

setSubstitutionChars

public void setSubstitutionChars(char[] ac)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException