jjdh API

dh.java.io
Class LoopingByteInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by dh.java.io.LoopingByteInputStream
All Implemented Interfaces:
Closeable

public class LoopingByteInputStream
extends ByteArrayInputStream


Field Summary
private  boolean closed
           
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
LoopingByteInputStream(byte[] buffer)
           
 
Method Summary
 void close()
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closed

private boolean closed
Constructor Detail

LoopingByteInputStream

public LoopingByteInputStream(byte[] buffer)
Method Detail

read

public int read(byte[] buffer,
                int offset,
                int length)
Overrides:
read in class ByteArrayInputStream

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class ByteArrayInputStream
Throws:
IOException

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.