Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

XSECBinTXFMInputStream Class Reference
[Classes that interface applications to XML Security C.]

BinInputSource wrapper for a TXFMList. More...

#include <XSECBinTXFMInputStream.hpp>

Collaboration diagram for XSECBinTXFMInputStream:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual unsigned int curPos () const
 Current position in stream. More...

virtual unsigned int readBytes (XMLByte *const toFill, const unsigned int maxToRead)
 Retrieve the required number of bytes and return. More...

Constructors and Destructors
 XSECBinTXFMInputStream (TXFMBase *lst, bool deleteWhenDone=true)
 Construct around an existing transform list. More...

virtual ~XSECBinTXFMInputStream ()
 Destructor. More...

Stream management methods
void reset ()
 Reset the stream. More...


Detailed Description

BinInputSource wrapper for a TXFMList.

This class provides a wrapper for a TXFMList. It can be used to either provide a nice interface to applications wishing to read the BYTESTREAM output of a TXFM chain, or, as it is derived from BinInputStream, provide an input to the Xerces Parser.


Constructor & Destructor Documentation

XSECBinTXFMInputStream::XSECBinTXFMInputStream TXFMBase   lst,
bool    deleteWhenDone = true
 

Construct around an existing transform list.

Parameters:
lst  The final TXFM element in the input chain.
deleteWhenDone  Flag to instruct the class to delete the chain when done. By default set to true.

virtual XSECBinTXFMInputStream::~XSECBinTXFMInputStream   [virtual]
 

Destructor.

Delete the object. If deleteWhenDone was set during construction, will delete the chain if it has not already been done.


Member Function Documentation

virtual unsigned int XSECBinTXFMInputStream::curPos   const [virtual]
 

Current position in stream.

Returns:
Bytes already returned.

virtual unsigned int XSECBinTXFMInputStream::readBytes XMLByte *const    toFill,
const unsigned int    maxToRead
[virtual]
 

Retrieve the required number of bytes and return.

Retrieve up to the requested number of bytes. Does not always retrieve as much as requested, but will always retrieve something until completed.

Note:
When complete, will return 0 and delete the TXFM chain if requested to do so in the constructor.
Parameters:
toFill  The buffer that will be read into.
maxToRead  Maximum number of bytes to return
Returns:
The number of bytes read or 0 if complete.

void XSECBinTXFMInputStream::reset  
 

Reset the stream.

Note:
At this time simply deletes the TXFM chain - many TXFMs do not have an ability to reset.


The documentation for this class was generated from the following file:
Generated on Sat Jan 11 20:35:27 2003 for XML-Security-C by doxygen1.2.15