class StdInInputSource : public InputSource

This class is a derivative of the standard InputSource class

Inheritance:


Public Methods

BinInputStream* makeStream () const
This method will return a binary input stream derivative that will parse from the standard input of the local host

Inherited from InputSource:

Public

protected Constructors and Destructor

InputSource()
Default constructor
InputSource(const XMLCh* const systemId)
Constructor with a system identifier as XMLCh type
InputSource( const XMLCh* const systemId, const XMLCh* const publicId )
Constructor with a system and public identifiers
InputSource(const char* const systemId)
Constructor witha system identifier as string
InputSource( const char* const systemId, const char* const publicId )
Constructor witha system and public identifiers

Destructor

virtual ~InputSource()
Destructor

Getter methods

const XMLCh* getEncoding() const
An input source can be set to force the parser to assume a particular encoding for the data that input source reprsents, via the setEncoding() method
const XMLCh* getPublicId() const
Get the public identifier for this input source
const XMLCh* getSystemId() const
Get the system identifier for this input source

Setter methods

void setEncoding(const XMLCh* const encodingStr)
Set the encoding which will be required for use with the XML text read via a stream opened by this input source
void setPublicId(const XMLCh* const publicId)
Set the public identifier for this input source
void setSystemId(const XMLCh* const systemId)
Set the system identifier for this input source

Virtual input source interface

virtual BinInputStream* makeStream() const
Makes the byte stream for this input source

Documentation

This class is a derivative of the standard InputSource class. It provides for the parser access to data via the standard input. This input source is not commonly used, but can be useful when implementing such things as pipe based tools which exchange XML data. As with all InputSource derivatives. The primary objective of an input source is to create an input stream via which the parser can spool in data from the referenced source.
StdInInputSource()
Since the standard input is a canned source, the constructor is very simple. It just uses local platform services to open up the standard input source as file, a new handleof which it gives to each new stream it creates.

BinInputStream* makeStream() const
This method will return a binary input stream derivative that will parse from the standard input of the local host.
Returns:
A dynamically allocated binary input stream derivative that can parse from the standardinput.


This class has no child classes.

alphabetic index hierarchy of classes


Xerces-C XML Parser for C++ Version 1.1
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.

generated by doc++