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

rwsf::ServletOutputStream

Package:  Servlet


rwsf::ServletOutputStream std::basic_ostream<char>

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.

Example

Public Destructor

virtual
~ServletOutputStream();

Public Member Functions

std::string
getBuffer() const;
rwsf::ServletOutputStream&
print(bool b);
rwsf::ServletOutputStream&
print(char c);
rwsf::ServletOutputStream&
print(unsigned char uc);
rwsf::ServletOutputStream&
print(short s);
rwsf::ServletOutputStream&
print(unsigned short us);
rwsf::ServletOutputStream&
print(int i);
rwsf::ServletOutputStream&
print(unsigned int ui);
rwsf::ServletOutputStream&
print(long l);
rwsf::ServletOutputStream&
print(unsigned long ul);
rwsf::ServletOutputStream&
print(float f);
rwsf::ServletOutputStream&
print(double d);
rwsf::ServletOutputStream&
print(const char *cs);
rwsf::ServletOutputStream&
print(const unsigned char *ucs);
rwsf::ServletOutputStream&
print(const std::string& str);
rwsf::ServletOutputStream&
println();
rwsf::ServletOutputStream&
println(bool b);
rwsf::ServletOutputStream&
println(char c);
rwsf::ServletOutputStream& 
println(unsigned char uc);
rwsf::ServletOutputStream& 
println(short s);
rwsf::ServletOutputStream& 
println(unsigned short us);
rwsf::ServletOutputStream& 
println(int i);
rwsf::ServletOutputStream& 
println(unsigned int ui);
rwsf::ServletOutputStream& 
println(long l);
rwsf::ServletOutputStream& 
println(unsigned long ul);
rwsf::ServletOutputStream& 
println(float f);
rwsf::ServletOutputStream& 
println(double d);
rwsf::ServletOutputStream& 
println(const char *cs);
rwsf::ServletOutputStream& 
println(const unsigned char *ucs);
rwsf::ServletOutputStream& 
println(const std::string& str);
void 
reset();
void
reset(const std::string& newContents);


Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.