Servlet::ServletOutputStream - servlet output stream interface
$stream->print($string);
$stream->println(); $stream->println($string);
$stream->write($string); $stream->write($string, $length); $stream->write($string, $length, $offset);
$stream->flush();
$stream->close();
Provides an output stream for writing binary data to a servlet response.
An output stream object is normally retrieved via getOutputStream in the Servlet::ServletResponse manpage.
NOTE: While this is an abstract class in the Java API, the Perl API provides it as an interface. The main difference is that the Perl version has no constructor. Also, it merges the methods declared in java.io.OutputStream and javax.servlet.ServletOutputStream into a single interface.
close()
Throws:
flush()
Throws:
print($value)
Parameters:
Throws:
println([$value])
Parameters:
Throws:
write($value)
If no arguments are specified, functions exactly equivalently to
print()
.
If $length is specified, writes that many bytes from $value. If $offset is specified, starts writing that many bytes from the beginning of $value. $offset and $length must not be negative, and $length must not be greater than the amount of data in $value starting from $offset.
Blocks until input data is available, the end of the stream is detected, or an exception is thrown.
Parameters:
Throws:
the Servlet::ServletResponse manpage, the Servlet::Util::Exception manpage
Brian Moseley, bcm@maz.org