com.sun.xml.messaging.saaj.util
Class ByteInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by com.sun.xml.messaging.saaj.util.ByteInputStream
All Implemented Interfaces:
java.io.Closeable

public class ByteInputStream
extends java.io.ByteArrayInputStream


Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
ByteInputStream()
           
ByteInputStream(byte[] buf, int length)
           
ByteInputStream(byte[] buf, int offset, int length)
           
 
Method Summary
 void close()
           
 byte[] getBytes()
           
 int getCount()
           
 void setBuf(byte[] buf)
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, mark, markSupported, read, 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
 

Constructor Detail

ByteInputStream

public ByteInputStream()

ByteInputStream

public ByteInputStream(byte[] buf,
                       int length)

ByteInputStream

public ByteInputStream(byte[] buf,
                       int offset,
                       int length)
Method Detail

getBytes

public byte[] getBytes()

getCount

public int getCount()

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

setBuf

public void setBuf(byte[] buf)