com.ibm.icu.util
Class BytesTrie.Entry

java.lang.Object
  extended by com.ibm.icu.util.BytesTrie.Entry
Enclosing class:
BytesTrie

public static final class BytesTrie.Entry
extends Object

Return value type for the Iterator.

Status:
Draft ICU 4.8.

Field Summary
 int value
          The value associated with the byte sequence.
 
Method Summary
 byte byteAt(int index)
          Returns a byte of the byte sequence.
 ByteBuffer bytesAsByteBuffer()
           
 int bytesLength()
           
 void copyBytesTo(byte[] dest, int destOffset)
          Copies the byte sequence into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public int value
The value associated with the byte sequence.

Status:
Draft ICU 4.8.
Method Detail

bytesLength

public int bytesLength()
Returns:
The length of the byte sequence.
Status:
Draft ICU 4.8.

byteAt

public byte byteAt(int index)
Returns a byte of the byte sequence.

Parameters:
index - An index into the byte sequence.
Returns:
The index-th byte sequence byte.
Status:
Draft ICU 4.8.

copyBytesTo

public void copyBytesTo(byte[] dest,
                        int destOffset)
Copies the byte sequence into a byte array.

Parameters:
dest - Destination byte array.
destOffset - Starting offset to where in dest the byte sequence is copied.
Status:
Draft ICU 4.8.

bytesAsByteBuffer

public ByteBuffer bytesAsByteBuffer()
Returns:
The byte sequence as a read-only ByteBuffer.
Status:
Draft ICU 4.8.


Copyright (c) 2011 IBM Corporation and others.