APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.icu.impl

public final Class StringPrepDataReader

extends Object
implements Authenticate
Class Inheritance
All Implemented Interfaces
jdk.internal.icu.impl.ICUBinary.Authenticate
Imports
java.io.DataInputStream, .IOException, .InputStream, jdk.internal.icu.impl.ICUBinary

Author
ram To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary

Modifier and TypeField and Description
private static final byte[]
DATA_FORMAT_ID

File format version that this class understands.

private static final byte[]
private DataInputStream
dataInputStream

ICU data file input stream

private byte[]

Constructor Summary

AccessConstructor and Description
public
StringPrepDataReader(InputStream
ICU uprop.dat file input stream
inputStream
)

private constructor.

Method Summary

Modifier and TypeMethod and Description
public byte[]
public byte[]
public boolean
isDataVersionAcceptable(byte[] version)

Implements jdk.internal.icu.impl.ICUBinary.Authenticate.isDataVersionAcceptable.

Method used in ICUBinary.readHeader() to provide data format authentication.

public void
read(byte[] idnaBytes, char[] mappingTable)

public int[]
readIndexes(int length)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DATA_FORMAT_IDback to summary
private static final byte[] DATA_FORMAT_ID

File format version that this class understands. No guarantees are made if a older version is used see store.c of gennorm for more information and values

DATA_FORMAT_VERSIONback to summary
private static final byte[] DATA_FORMAT_VERSION
dataInputStreamback to summary
private DataInputStream dataInputStream

ICU data file input stream

unicodeVersionback to summary
private byte[] unicodeVersion

Constructor Detail

StringPrepDataReaderback to summary
public StringPrepDataReader(InputStream inputStream) throws IOException

private constructor.

Parameters
inputStream:InputStream

ICU uprop.dat file input stream

Exceptions
IOException:
throw if data file fails authentication
ICU Status
Draft since ICU 2.1.

Method Detail

getDataFormatVersionback to summary
public byte[] getDataFormatVersion()
getUnicodeVersionback to summary
public byte[] getUnicodeVersion()
isDataVersionAcceptableback to summary
public boolean isDataVersionAcceptable(byte[] version)

Implements jdk.internal.icu.impl.ICUBinary.Authenticate.isDataVersionAcceptable.

Doc from jdk.internal.icu.impl.ICUBinary.Authenticate.isDataVersionAcceptable.

Method used in ICUBinary.readHeader() to provide data format authentication.

readback to summary
public void read(byte[] idnaBytes, char[] mappingTable) throws IOException
readIndexesback to summary
public int[] readIndexes(int length) throws IOException