net.sf.cb2java.copybook
Class Copybook.ByteBuffer

java.lang.Object
  extended bynet.sf.cb2java.copybook.Copybook.ByteBuffer
Enclosing class:
Copybook

public static class Copybook.ByteBuffer
extends java.lang.Object

a helper class for buffering the data as it is processed

Author:
James Watson

Constructor Summary
Copybook.ByteBuffer()
           
 
Method Summary
 void add(byte[] bytes, int length)
           
 void fill(java.io.InputStream stream)
           
 byte[] get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Copybook.ByteBuffer

public Copybook.ByteBuffer()
Method Detail

fill

public void fill(java.io.InputStream stream)
          throws java.io.IOException
Throws:
java.io.IOException

add

public void add(byte[] bytes,
                int length)

get

public byte[] get()