Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::ServletOutputStream

Group:  Servlet


Does not inherit

Local Index

Members

Header File

#include rwsf/servlet/ServletOutputStream.h

Description

rwsf::ServletOutputStream provides a simple mechanism for writing a response. The class has a set of print() and println() functions which duplicate the corresponding methods in the Java ServletOutputStream class. A print() method writes the argument to the output stream. A println() method writes the argument and a newline to the output stream. Note that the print(bool) and println(bool) functions follow Java conventions and produce "true" and "false" rather than 1 and 0.

To construct an instance of this class, call either function getOutputStream() or function getWriter() of rwsf::ServletResponse.

Public Destructors

virtual
~ServletOutputStream();

Public Member Functions

std::string
getBuffer() const;
ServletOutputStream &
print(bool b);
ServletOutputStream &
print(char c);
ServletOutputStream &
print(unsigned char uc);
ServletOutputStream &
print(short s);
ServletOutputStream &
print(unsigned short s);
ServletOutputStream &
print(int s);
ServletOutputStream &
print(unsigned int s);
ServletOutputStream &
print(long s);
ServletOutputStream &
print(unsigned long s);
ServletOutputStream &
print(float s);
ServletOutputStream &
print(double s);
ServletOutputStream &
print(const char * s);
ServletOutputStream &
print(const unsigned char * s);
ServletOutputStream &
print(const std::string & str);
ServletOutputStream &
println();
ServletOutputStream &
println(bool b);
ServletOutputStream &
println(char c);
ServletOutputStream &
println(unsigned char uc);
ServletOutputStream &
println(short s);
ServletOutputStream &
println(unsigned short s);
ServletOutputStream &
println(int s);
ServletOutputStream &
println(unsigned int s);
ServletOutputStream &
println(long s);
ServletOutputStream &
println(unsigned long s);
ServletOutputStream &
println(float s);
ServletOutputStream &
println(double s);
ServletOutputStream &
println(const char * s);
ServletOutputStream &
println(const unsigned char * s);
ServletOutputStream &
println(const std::string & str);
void
reset();
void
reset(const std::string & newContents);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.