com.google.zxing.common
Class ByteArray

java.lang.Object
  extended by com.google.zxing.common.ByteArray

public final class ByteArray
extends Object

This class implements an array of unsigned bytes.

Since:
BlackBerry API 6.0.0

Constructor Summary
ByteArray()
           
ByteArray(byte[] byteArray)
           
ByteArray(int size)
           
 
Method Summary
 void appendByte(int value)
           
 int at(int index)
          Access an unsigned byte at location index.
 boolean isEmpty()
           
 void reserve(int capacity)
           
 void set(byte[] source, int offset, int count)
           
 void set(int index, int value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

ByteArray

public ByteArray()
Since:
BlackBerry API 6.0.0

ByteArray

public ByteArray(int size)
Since:
BlackBerry API 6.0.0

ByteArray

public ByteArray(byte[] byteArray)
Since:
BlackBerry API 6.0.0


Method Detail

at

public int at(int index)
Access an unsigned byte at location index.

Parameters:
index - The index in the array to access.
Returns:
The unsigned value of the byte as an int.
Since:
BlackBerry API 6.0.0

set

public void set(int index,
                int value)
Since:
BlackBerry API 6.0.0

size

public int size()
Since:
BlackBerry API 6.0.0

isEmpty

public boolean isEmpty()
Since:
BlackBerry API 6.0.0

appendByte

public void appendByte(int value)
Since:
BlackBerry API 6.0.0

reserve

public void reserve(int capacity)
Since:
BlackBerry API 6.0.0

set

public void set(byte[] source,
                int offset,
                int count)
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.