org.mortbay.http

Class ChunkingOutputStream

public class ChunkingOutputStream extends BufferedOutputStream implements HttpMessage.HeaderWriter

HTTP Chunking OutputStream.

Version: $Id: ChunkingOutputStream.java,v 1.6 2004/10/19 00:27:23 gregwilkins Exp $

Author: Greg Wilkins

Constructor Summary
ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve)
Constructor.
ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve, boolean chunking)
Constructor.
Method Summary
protected voidbypassWrite(byte[] b, int offset, int length)
voidclose()
booleanisChunking()
voidresetStream()
voidsetChunking(boolean chunking)
protected voidwrapBuffer()

Constructor Detail

ChunkingOutputStream

public ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve)
Constructor.

Parameters: outputStream The outputStream to buffer or chunk to.

ChunkingOutputStream

public ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve, boolean chunking)
Constructor.

Parameters: outputStream The outputStream to buffer or chunk to.

Method Detail

bypassWrite

protected void bypassWrite(byte[] b, int offset, int length)

close

public void close()

isChunking

public boolean isChunking()

resetStream

public void resetStream()

setChunking

public void setChunking(boolean chunking)

wrapBuffer

protected void wrapBuffer()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.