Build 1.0_r1(from source)

org.apache.http.impl.io
Class IdentityOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.http.impl.io.IdentityOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class IdentityOutputStream
extends OutputStream

A stream for writing with an "identity" transport encoding.

Since:
4.0

Constructor Summary
IdentityOutputStream(SessionOutputBuffer out)
           
 
Method Summary
 void close()
          Does not close the underlying socket output.
 void flush()
          Flush this OutputStream.
 void write(byte[] b)
          Writes the entire contents of the byte array buffer to this OutputStream.
 void write(byte[] b, int off, int len)
          Writes count bytes from the byte array buffer starting at offset to this OutputStream.
 void write(int b)
          Writes the specified byte oneByte to this OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityOutputStream

public IdentityOutputStream(SessionOutputBuffer out)
Method Detail

close

public void close()
           throws IOException

Does not close the underlying socket output.

Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException - If an I/O problem occurs.

flush

public void flush()
           throws IOException
Description copied from class: OutputStream
Flush this OutputStream. Concrete implementations of this class should ensure any pending writes to the underlying stream are written out when this method is envoked. This implementation does nothing.

Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException - If an error occurs attempting to flush this OutputStream.

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Description copied from class: OutputStream
Writes count bytes from the byte array buffer starting at offset to this OutputStream.

Overrides:
write in class OutputStream
Parameters:
b - the buffer to be written
off - offset in buffer to get bytes
len - number of bytes in buffer to write
Throws:
IOException - If an error occurs attempting to write to this OutputStream.

write

public void write(byte[] b)
           throws IOException
Description copied from class: OutputStream
Writes the entire contents of the byte array buffer to this OutputStream.

Overrides:
write in class OutputStream
Parameters:
b - the buffer to be written
Throws:
IOException - If an error occurs attempting to write to this OutputStream.

write

public void write(int b)
           throws IOException
Description copied from class: OutputStream
Writes the specified byte oneByte to this OutputStream. Only the low order byte of oneByte is written.

Specified by:
write in class OutputStream
Parameters:
b - the byte to be written
Throws:
IOException - If an error occurs attempting to write to this OutputStream.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature