loci.formats.codec
Class ByteVector

java.lang.Object
  extended by loci.formats.codec.ByteVector

public class ByteVector
extends Object

A growable array of bytes.

Source code:
Trac, SVN

Author:
Wayne Rasband wsr at nih.gov

Constructor Summary
ByteVector()
           
ByteVector(byte[] byteBuffer)
           
ByteVector(int initialSize)
           
 
Method Summary
 void add(byte x)
           
 void add(byte[] array)
           
 void add(byte[] array, int off, int len)
           
 void clear()
           
 int size()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteVector

public ByteVector()

ByteVector

public ByteVector(int initialSize)

ByteVector

public ByteVector(byte[] byteBuffer)
Method Detail

add

public void add(byte x)

size

public int size()

add

public void add(byte[] array)

add

public void add(byte[] array,
                int off,
                int len)

clear

public void clear()

toByteArray

public byte[] toByteArray()