Package com.ibm.icu.impl
Class StringPrepDataReader
java.lang.Object
com.ibm.icu.impl.StringPrepDataReader
- All Implemented Interfaces:
ICUBinary.Authenticate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuffer
ICU data file input streamprivate static final int
File format version that this class understands.private static final byte[]
private static final boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
boolean
isDataVersionAcceptable
(byte[] version) Method used in ICUBinary.readHeader() to provide data format authentication.char[]
read
(int length) int[]
readIndexes
(int length)
-
Field Details
-
debug
private static final boolean debug -
byteBuffer
ICU data file input stream -
unicodeVersion
private int unicodeVersion -
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
-
StringPrepDataReader
private constructor.
- Parameters:
bytes
- ICU StringPrep data file buffer- Throws:
IOException
- throw if data file fails authentication
-
-
Method Details
-
read
- 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
-
readIndexes
- Throws:
IOException
-
getUnicodeVersion
public byte[] getUnicodeVersion()
-