Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ydp.jai
Class IDATOutputStream  view IDATOutputStream download IDATOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.ydp.jai.IDATOutputStream

class IDATOutputStream
extends java.io.FilterOutputStream


Field Summary
(package private)  byte[] buffer
           
private  int bytesWritten
           
private  int segmentLength
           
private static byte[] typeSignature
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
IDATOutputStream(java.io.OutputStream output, int segmentLength)
           
 
Method Summary
 void close()
          This method closes the underlying OutputStream.
 void flush()
          This method attempt to flush all buffered output to be written to the underlying output sink.
 void write(byte[] b)
          This method writes all the bytes in the specified array to the underlying OutputStream.
 void write(byte[] b, int off, int len)
          This method calls the write(int) method len times for all bytes from the array buf starting at index offset.
 void write(int b)
          This method writes a single byte of output to the underlying OutputStream.
private  void writeInt(int x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeSignature

private static final byte[] typeSignature

bytesWritten

private int bytesWritten

segmentLength

private int segmentLength

buffer

byte[] buffer
Constructor Detail

IDATOutputStream

public IDATOutputStream(java.io.OutputStream output,
                        int segmentLength)
Method Detail

close

public void close()
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method closes the underlying OutputStream. Any further attempts to write to this stream may throw an exception.


writeInt

private void writeInt(int x)
               throws java.io.IOException

flush

public void flush()
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method attempt to flush all buffered output to be written to the underlying output sink.


write

public void write(byte[] b)
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method writes all the bytes in the specified array to the underlying OutputStream. It does this by calling the three parameter version of this method - write(byte[], int, int) in this class instead of writing to the underlying OutputStream directly. This allows most subclasses to avoid overriding this method.


write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method calls the write(int) method len times for all bytes from the array buf starting at index offset. Subclasses should overwrite this method to get a more efficient implementation.


write

public void write(int b)
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method writes a single byte of output to the underlying OutputStream.