public final class StringPrepDataReader extends Object implements ICUBinary.Authenticate
| Constructor and Description |
|---|
StringPrepDataReader(ByteBuffer bytes)
private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getUnicodeVersion() |
boolean |
isDataVersionAcceptable(byte[] version)
Method used in ICUBinary.readHeader() to provide data format
authentication.
|
char[] |
read(int length) |
int[] |
readIndexes(int length) |
public StringPrepDataReader(ByteBuffer bytes) throws IOException
private constructor.
bytes - ICU StringPrep data file bufferIOException - throw if data file fails authenticationpublic char[] read(int length)
throws IOException
IOExceptionpublic boolean isDataVersionAcceptable(byte[] version)
ICUBinary.AuthenticateisDataVersionAcceptable in interface ICUBinary.Authenticateversion - version of the current datapublic int[] readIndexes(int length)
throws IOException
IOExceptionpublic byte[] getUnicodeVersion()