org.gudy.azureus2.core3.internat
Class LocaleUtilDecoderFallback

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

public class LocaleUtilDecoderFallback
extends Object
implements LocaleUtilDecoder

Author:
parg

Field Summary
static String NAME
           
 
Constructor Summary
protected LocaleUtilDecoderFallback(int _index)
           
 
Method Summary
protected  String decode(byte[] data)
           
 String decodeString(byte[] bytes)
           
protected  boolean fileLengthOK(int len)
           
 int getIndex()
           
 String getName()
           
 String tryDecode(byte[] bytes, boolean lax)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

LocaleUtilDecoderFallback

protected LocaleUtilDecoderFallback(int _index)
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[] bytes,
                        boolean lax)
Specified by:
tryDecode in interface LocaleUtilDecoder

decodeString

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

decode

protected String decode(byte[] data)

fileLengthOK

protected boolean fileLengthOK(int len)