Qore Programming Language Reference Manual  0.8.12.3
Qore::TransformOutputStream Class Reference

This class implements the OutputStream interface for writing bytes to another OutputStream while applying a transformation. More...

Inheritance diagram for Qore::TransformOutputStream:

Public Member Functions

nothing close ()
 Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources. More...
 
 constructor (Qore::OutputStream os, Qore::Transform t)
 Creates the TransformOutputStream. More...
 
nothing write (binary data)
 Writes bytes to the output stream. More...
 
- Public Member Functions inherited from Qore::OutputStream
 constructor ()
 Constructor. More...
 

Detailed Description

This class implements the OutputStream interface for writing bytes to another OutputStream while applying a transformation.

Since
Qore 0.8.13

Member Function Documentation

nothing Qore::TransformOutputStream::close ( )
virtual

Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources.

Any methods called on a closed output stream will throw an exception.

Implements Qore::OutputStream.

Qore::TransformOutputStream::constructor ( Qore::OutputStream  os,
Qore::Transform  t 
)

Creates the TransformOutputStream.

Parameters
osthe underlying OutputStream where the transformed data will be written to
tthe transformation to apply
nothing Qore::TransformOutputStream::write ( binary  data)
virtual

Writes bytes to the output stream.

Parameters
datathe data to write

Implements Qore::OutputStream.