Package ome.codecs

Class ByteVector


  • public class ByteVector
    extends java.lang.Object
    A growable array of bytes.
    Author:
    Wayne Rasband wsr at nih.gov
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(byte x)  
      void add​(byte[] array)  
      void add​(byte[] array, int off, int len)  
      void clear()  
      byte get​(int index)  
      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()
      • get

        public byte get​(int index)
      • add

        public void add​(byte[] array)
      • add

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

        public void clear()
      • toByteArray

        public byte[] toByteArray()