org.apache.derbyTesting.functionTests.util.streams
Class ReadOnceByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by org.apache.derbyTesting.functionTests.util.streams.ReadOnceByteArrayInputStream
All Implemented Interfaces:
java.io.Closeable

public class ReadOnceByteArrayInputStream
extends java.io.ByteArrayInputStream


Field Summary
private  boolean isClosed
           
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
ReadOnceByteArrayInputStream(byte[] arg0)
           
ReadOnceByteArrayInputStream(byte[] arg0, int arg1, int arg2)
           
 
Method Summary
 void close()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, mark, 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

isClosed

private boolean isClosed
Constructor Detail

ReadOnceByteArrayInputStream

public ReadOnceByteArrayInputStream(byte[] arg0)

ReadOnceByteArrayInputStream

public ReadOnceByteArrayInputStream(byte[] arg0,
                                    int arg1,
                                    int arg2)
Method Detail

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.ByteArrayInputStream

close

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

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class java.io.ByteArrayInputStream

read

public int read()
Overrides:
read in class java.io.ByteArrayInputStream

Built on Thu 2009-11-26 18:42:53-0800, from revision 884739

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.