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
IOExceptionpublic byte[] getDataFormatVersion()
public boolean isDataVersionAcceptable(byte[] version)
ICUBinary.AuthenticateisDataVersionAcceptable in interface ICUBinary.Authenticateversion - version of the current datapublic int[] readIndexes(int length)
throws IOException
IOExceptionpublic byte[] getUnicodeVersion()
Copyright © 2010 - 2020 Adobe. All Rights Reserved