Servlet::ServletOutputStream

Servlet::ServletOutputStream is a servlet output stream interface.
Download

Servlet::ServletOutputStream Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brian Moseley
  • Publisher web site:
  • http://search.cpan.org/~ix/libservlet-0.9.2/lib/Servlet/ServletRequest.pm

Servlet::ServletOutputStream Tags


Servlet::ServletOutputStream Description

Servlet::ServletOutputStream is a servlet output stream interface. Servlet::ServletOutputStream is a servlet output stream interface.SYNOPSIS $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 Servlet::ServletResponse.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.METHODSclose()Closes the stream and releases any system resources associated with the stream.Throws:Servlet::Util::IOExceptionif an output exception occurredflush()Flushes this input stream and forces any buffered output bytes to be written out.Throws:Servlet::Util::IOExceptionif an output exception occurredprint($value)Writes a scalar value to the client, with no carriage return-line feed (CRLF) character at the end.Parameters:$valuethe value to send to the clientThrows:Servlet::Util::IOExceptionif an output exception occurredprintln()Writes a scalar value to the client, if specified, followed by a carriage return-line feed (CRLF) character.Parameters:$valuethe (optional) value to send to the clientThrows:Servlet::Util::IOExceptionif an output exception occurredwrite($value) write($value, $length) write($value, $length, $offset)Writes the scalar $value to the stream.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:$valuea scalar value to be written$lengththe maximum number of bytes to write$offsetthe location in $value where data is read fromThrows:Servlet::Util::IOExceptionif an input exception occursServlet::Util::IndexOutOfBoundsExceptionif $buffer is specified as undef Requirements: · Perl


Servlet::ServletOutputStream Related Software