php.java.bridge.http
Class ChunkedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by php.java.bridge.http.ChunkedOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ChunkedOutputStream
extends java.io.FilterOutputStream

An output stream which writes data in HTTP chunks.

Author:
jostb

Constructor Summary
ChunkedOutputStream(java.io.OutputStream out)
          Create new new chunked output stream
 
Method Summary
 void eof()
          Write trailing 0\r\n and flush the underlying output stream
 void write(byte[] buf, int pos, int len)
          
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedOutputStream

public ChunkedOutputStream(java.io.OutputStream out)
Create new new chunked output stream

Parameters:
out -
Method Detail

write

public void write(byte[] buf,
                  int pos,
                  int len)
           throws java.io.IOException

Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

eof

public void eof()
         throws java.io.IOException
Write trailing 0\r\n and flush the underlying output stream

Throws:
java.io.IOException