Class UConverterAliasDataReader
java.lang.Object
com.ibm.icu.charset.UConverterAliasDataReader
- All Implemented Interfaces:
ICUBinary.Authenticate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferICU data file bufferprivate static final intFile format version that this class understands.private static final byte[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDataVersionAcceptable(byte[] version) Method used in ICUBinary.readHeader() to provide data format authentication.protected int[]readToc(int n)
-
Field Details
-
byteBuffer
ICU data file buffer -
DATA_FORMAT_ID
private static final int DATA_FORMAT_IDFile format version that this class understands. No guarantees are made if a older version is used see store.c of gennorm for more information and values- See Also:
-
DATA_FORMAT_VERSION
private static final byte[] DATA_FORMAT_VERSION
-
-
Constructor Details
-
UConverterAliasDataReader
Protected constructor.
- Parameters:
bytes- ICU uprop.dat file buffer- Throws:
IOException- throw if data file fails authentication
-
-
Method Details
-
readToc
- Throws:
IOException
-
isDataVersionAcceptable
public boolean isDataVersionAcceptable(byte[] version) Description copied from interface:ICUBinary.AuthenticateMethod used in ICUBinary.readHeader() to provide data format authentication.- Specified by:
isDataVersionAcceptablein interfaceICUBinary.Authenticate- Parameters:
version- version of the current data- Returns:
- true if dataformat is an acceptable version, false otherwise
-