A stream wrapper that closes itself after a defined number of bytes.
author: Oleg Kalnichevski version: $Revision: 560343 $ since: 4.0
Constructor Summary
public
ContentLengthOutputStream(SessionOutputBuffer out, long contentLength) Creates a new length limited stream
Parameters: out - The data transmitter to wrap Parameters: contentLength - The maximum number of bytes that can be written tothe stream.
Creates a new length limited stream
Parameters: out - The data transmitter to wrap Parameters: contentLength - The maximum number of bytes that can be written tothe stream. Subsequent write operations will be ignored. since: 4.0