Package com.ibm.icu.charset
Class UConverterAliasDataReader
java.lang.Object
com.ibm.icu.charset.UConverterAliasDataReader
- All Implemented Interfaces:
ICUBinary.Authenticate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuffer
ICU data file bufferprivate static final int
File format version that this class understands.private static final byte[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Protected constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDataVersionAcceptable
(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.Authenticate
Method used in ICUBinary.readHeader() to provide data format authentication.- Specified by:
isDataVersionAcceptable
in interfaceICUBinary.Authenticate
- Parameters:
version
- version of the current data- Returns:
- true if dataformat is an acceptable version, false otherwise
-