Package com.adobe.agl.impl
Class StringPrepDataReader
- java.lang.Object
-
- com.adobe.agl.impl.StringPrepDataReader
-
- All Implemented Interfaces:
ICUBinary.Authenticate
public final class StringPrepDataReader extends Object implements ICUBinary.Authenticate
-
-
Constructor Summary
Constructors Constructor Description StringPrepDataReader(InputStream inputStream)
private constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getDataFormatVersion()
byte[]
getUnicodeVersion()
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 Detail
-
StringPrepDataReader
public StringPrepDataReader(InputStream inputStream) throws IOException
private constructor.
- Parameters:
inputStream
- ICU uprop.dat file input stream- Throws:
IOException
- throw if data file fails authentication
-
-
Method Detail
-
read
public void read(byte[] idnaBytes, char[] mappingTable) throws IOException
- 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
public int[] readIndexes(int length) throws IOException
- Throws:
IOException
-
getUnicodeVersion
public byte[] getUnicodeVersion()
-
-