org.gudy.azureus2.core3.internat
Class LocaleUtilDecoderReal

java.lang.Object
  extended by org.gudy.azureus2.core3.internat.LocaleUtilDecoderReal
All Implemented Interfaces:
LocaleUtilDecoder

public class LocaleUtilDecoderReal
extends Object
implements LocaleUtilDecoder


Field Summary
protected  CharsetDecoder decoder
           
protected  int index
           
 
Constructor Summary
protected LocaleUtilDecoderReal(int _index, CharsetDecoder _decoder)
           
 
Method Summary
 String decodeString(byte[] bytes)
           
 int getIndex()
           
 String getName()
           
 String tryDecode(byte[] array, boolean lax)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoder

protected final CharsetDecoder decoder

index

protected final int index
Constructor Detail

LocaleUtilDecoderReal

protected LocaleUtilDecoderReal(int _index,
                                CharsetDecoder _decoder)
Method Detail

getName

public String getName()
Specified by:
getName in interface LocaleUtilDecoder

getIndex

public int getIndex()
Specified by:
getIndex in interface LocaleUtilDecoder

tryDecode

public String tryDecode(byte[] array,
                        boolean lax)
Specified by:
tryDecode in interface LocaleUtilDecoder

decodeString

public String decodeString(byte[] bytes)
                    throws UnsupportedEncodingException
Specified by:
decodeString in interface LocaleUtilDecoder
Throws:
UnsupportedEncodingException