public final class StringPrepDataReader extends Object implements ICUBinary.Authenticate
Constructor and Description |
---|
StringPrepDataReader(InputStream inputStream)
private constructor.
|
Modifier and Type | Method and 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) |
public StringPrepDataReader(InputStream inputStream) throws IOException
private constructor.
inputStream
- ICU uprop.dat file input streamIOException
- throw if data file fails authenticationpublic void read(byte[] idnaBytes, char[] mappingTable) throws IOException
IOException
public byte[] getDataFormatVersion()
public boolean isDataVersionAcceptable(byte[] version)
ICUBinary.Authenticate
isDataVersionAcceptable
in interface ICUBinary.Authenticate
version
- version of the current datapublic int[] readIndexes(int length) throws IOException
IOException
public byte[] getUnicodeVersion()
Copyright © 2010 - 2020 Adobe. All Rights Reserved