org.jasen.io
Class ByteArrayReader

java.lang.Object
  extended byjava.io.Reader
      extended byorg.jasen.io.ByteArrayReader

public class ByteArrayReader
extends Reader

Convenience reader class for reading [small] byte arrays.


Constructor Summary
ByteArrayReader(byte[] bytes)
           
 
Method Summary
 void close()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayReader

public ByteArrayReader(byte[] bytes)
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Throws:
IOException