public void read(ByteInputBuffer buffer){
  size=0;
  for (PackedOperation op=new PackedOperation(buffer.read()); !op.equals(PackedOperation.terminator()); op=new PackedOperation(buffer.read())) {
    if (size == transcript.length - 1) {
      final PackedOperation[] tmp=new PackedOperation[2 * transcript.length];
      System.arraycopy(transcript,0,tmp,0,size);
      transcript=tmp;
    }
    transcript[size++]=op;
  }
}

public void read ( ByteInputBuffer buffer ) { size = 0 ; for ( PackedOperation op = new PackedOperation ( buffer . read ( ) ) ; ! op . equals ( PackedOperation . terminator ( ) ) ; op = new PackedOperation ( buffer . read ( ) ) ) { if ( size == transcript . length - 1 ) { final PackedOperation [ ] tmp = new PackedOperation [ 2 * transcript . length ] ; System . arraycopy ( transcript , 0 , tmp , 0 , size ) ; transcript = tmp ; } transcript [ size ++ ] = op ; } }
read a packed transcript from a buffer
