Package com.adobe.agl.impl
Class StringPrepDataReader
java.lang.Object
com.adobe.agl.impl.StringPrepDataReader
- All Implemented Interfaces:
ICUBinary.Authenticate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
boolean
isDataVersionAcceptable
(byte[] version) Method used in ICUBinary.readHeader() to provide data format authentication.void
read
(byte[] idnaBytes, char[] mappingTable) int[]
readIndexes
(int length)
-
Constructor Details
-
StringPrepDataReader
private constructor.
- Parameters:
inputStream
- ICU uprop.dat file input stream- Throws:
IOException
- throw if data file fails authentication
-
-
Method Details
-
read
- Throws:
IOException
-
getDataFormatVersion
public byte[] getDataFormatVersion() -
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()
-