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 java.lang.Object implements ICUBinary.Authenticate
-
-
Constructor Summary
Constructors Constructor Description StringPrepDataReader(java.io.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)
-
-
-
Method Detail
-
read
public void read(byte[] idnaBytes, char[] mappingTable) throws java.io.IOException
- Throws:
java.io.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 java.io.IOException
- Throws:
java.io.IOException
-
getUnicodeVersion
public byte[] getUnicodeVersion()
-
-