org.gudy.azureus2.core3.internat
Class LocaleUtilDecoderFallback
java.lang.Object
org.gudy.azureus2.core3.internat.LocaleUtilDecoderFallback
- All Implemented Interfaces:
- LocaleUtilDecoder
public class LocaleUtilDecoderFallback
- extends java.lang.Object
- implements LocaleUtilDecoder
- Author:
- parg
Field Summary |
static java.lang.String |
NAME
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
LocaleUtilDecoderFallback
protected LocaleUtilDecoderFallback(int _index)
getName
public java.lang.String getName()
- Specified by:
getName
in interface LocaleUtilDecoder
getIndex
public int getIndex()
- Specified by:
getIndex
in interface LocaleUtilDecoder
tryDecode
public java.lang.String tryDecode(byte[] bytes,
boolean lax)
- Specified by:
tryDecode
in interface LocaleUtilDecoder
decodeString
public java.lang.String decodeString(byte[] bytes)
throws java.io.UnsupportedEncodingException
- Specified by:
decodeString
in interface LocaleUtilDecoder
- Throws:
java.io.UnsupportedEncodingException
decode
protected java.lang.String decode(byte[] data)
fileLengthOK
protected boolean fileLengthOK(int len)