A class for turning a character stream into a byte stream.
More...
#include <src/main/decaf/io/OutputStreamWriter.h>
Protected Member Functions |
virtual void | doWriteArrayBounded (const char *buffer, int size, int offset, int length) |
| Override this method to customize the functionality of the method write( char* buffer, int size, int offset, int length ).
|
virtual void | checkClosed () const |
virtual void | doWriteChar (char v) |
virtual void | doWriteVector (const std::vector< char > &buffer) |
virtual void | doWriteArray (const char *buffer, int size) |
virtual void | doWriteString (const std::string &str) |
virtual void | doWriteStringBounded (const std::string &str, int offset, int length) |
virtual decaf::lang::Appendable & | doAppendChar (char value) |
virtual decaf::lang::Appendable & | doAppendCharSequence (const decaf::lang::CharSequence *csq) |
virtual decaf::lang::Appendable & | doAppendCharSequenceStartEnd (const decaf::lang::CharSequence *csq, int start, int end) |
Detailed Description
A class for turning a character stream into a byte stream.
- See Also
- InputStreamReader
- Since
- 1.0
Constructor & Destructor Documentation
decaf::io::OutputStreamWriter::OutputStreamWriter |
( |
OutputStream * |
stream, |
|
|
bool |
own = false |
|
) |
| |
Creates a new OutputStreamWriter.
- Parameters
-
- Exceptions
-
NullPointerException | if the stream is NULL. |
virtual decaf::io::OutputStreamWriter::~OutputStreamWriter |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual void decaf::io::OutputStreamWriter::checkClosed |
( |
| ) |
const |
|
protectedvirtual |
virtual void decaf::io::OutputStreamWriter::close |
( |
| ) |
|
|
virtual |
Closes this object and deallocates the appropriate resources.
The object is generally no longer usable after calling close.
- Exceptions
-
Implements decaf::io::Closeable.
virtual void decaf::io::OutputStreamWriter::doWriteArrayBounded |
( |
const char * |
buffer, |
|
|
int |
size, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
protectedvirtual |
Override this method to customize the functionality of the method write( char* buffer, int size, int offset, int length ).
All subclasses must override this method to provide the basic Writer functionality.
Implements decaf::io::Writer.
virtual void decaf::io::OutputStreamWriter::flush |
( |
| ) |
|
|
virtual |
Flushes this stream by writing any buffered output to the underlying stream.
- Exceptions
-
Implements decaf::io::Flushable.
The documentation for this class was generated from the following file: