Internal reader class for ICU data file uname.dat containing Unicode codepoint name data.
This class simply reads unames.icu, authenticates that it is a valid ICU data file and split its contents up into blocks of data for use in com.ibm.icu.impl.UCharacterName.
unames.icu which is in big-endian format is jared together with this package.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ALG_INFO_SIZE_
Size of an algorithmic name information group start code point size + end code point size + type size + variant size + size of data size |
| private static final int | DATA_FORMAT_ID_
File format id that this class understands. |
| private static final int | GROUP_INFO_SIZE_
Size of the group information block in number of char |
| private int | |
| private ByteBuffer | m_byteBuffer_
Byte buffer for names |
| private int | |
| private int | |
| private int | m_tokenstringindex_
Index of the offset information |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: true if the file format version is correctChecking the file for the correct format. |
| public boolean | isDataVersionAcceptable(byte[]
version of the current data version)Implements com. |
| protected void | read(UCharacterName
instance of datablock data)Read and break up the stream of data passed in as arguments and fills up UCharacterName. |
| private UCharacterName. | Returns: an instance of AlgorithNames if read is successful otherwise nullReads an individual record of AlgorithmNames |
| ALG_INFO_SIZE_ | back to summary |
|---|---|
| private static final int ALG_INFO_SIZE_ Size of an algorithmic name information group start code point size + end code point size + type size + variant size + size of data size | |
| DATA_FORMAT_ID_ | back to summary |
|---|---|
| private static final int DATA_FORMAT_ID_ File format id that this class understands. | |
| GROUP_INFO_SIZE_ | back to summary |
|---|---|
| private static final int GROUP_INFO_SIZE_ Size of the group information block in number of char | |
| m_algnamesindex_ | back to summary |
|---|---|
| private int m_algnamesindex_ | |
| m_byteBuffer_ | back to summary |
|---|---|
| private ByteBuffer m_byteBuffer_ Byte buffer for names | |
| m_groupindex_ | back to summary |
|---|---|
| private int m_groupindex_ | |
| m_groupstringindex_ | back to summary |
|---|---|
| private int m_groupstringindex_ | |
| m_tokenstringindex_ | back to summary |
|---|---|
| private int m_tokenstringindex_ Index of the offset information | |
| UCharacterNameReader | back to summary |
|---|---|
| protected UCharacterNameReader(ByteBuffer bytes) throws IOException Protected constructor.
| |
| authenticate | back to summary |
|---|---|
| protected boolean authenticate(byte[] dataformatid, byte[] dataformatversion) Checking the file for the correct format.
| |
| isDataVersionAcceptable | back to summary |
|---|---|
| public boolean isDataVersionAcceptable(byte[] version) Implements com. Doc from com. Method used in ICUBinary.readHeader() to provide data format authentication.
| |
| read | back to summary |
|---|---|
| protected void read(UCharacterName data) throws IOException Read and break up the stream of data passed in as arguments and fills up UCharacterName. If unsuccessful false will be returned.
| |
| readAlg | back to summary |
|---|---|
| private UCharacterName. Reads an individual record of AlgorithmNames
| |