com.softwareag.tamino.db.api.io
Interface TXMLStreamable

All Superinterfaces:
TStreamable
All Known Implementing Classes:
TDOMAdapter, TSAXAdapter, TStreamAdapter, TXMLObject

public interface TXMLStreamable
extends TStreamable

TXMLStreamable defines operations for the reading from and writing to streams/readers and writers with XML content.

Version:
$Revision: 1.2 $
Author:
Stefan Liebig

Method Summary
 void readFrom(java.io.InputStream inputStream, java.lang.String systemId)
          Deprecated. It is recommended to use the TXMLObject.setSystemId() method before using readFrom( InputStream inputStream ) instead of this method.
 void readFrom(java.io.Reader reader, java.lang.String systemId)
          Deprecated. It is recommended to use the TXMLObject.setSystemId() method before using readFrom( Reader reader ) instead of this method.
 void writeTo(java.io.OutputStream outputStream, java.lang.String encoding)
          Writes the XML data to the given outputStream using the given encoding.
 void writeTo(java.io.Writer writer, java.lang.String encoding)
          Writes the XML data to the given writer using the given encoding.
 
Methods inherited from interface com.softwareag.tamino.db.api.io.TStreamable
getContentType, readFrom, readFrom, writeTo, writeTo
 

Method Detail

readFrom

void readFrom(java.io.InputStream inputStream,
              java.lang.String systemId)
              throws TStreamReadException
Deprecated. It is recommended to use the TXMLObject.setSystemId() method before using readFrom( InputStream inputStream ) instead of this method.

Reads data from the given inputStream using the specified base URI for parsing.

Parameters:
inputStream - a byte input stream.
systemId - the base URI of the data to resolve relative references.
Throws:
TStreamReadException - signals an error while attempting to read the stream.

readFrom

void readFrom(java.io.Reader reader,
              java.lang.String systemId)
              throws TStreamReadException
Deprecated. It is recommended to use the TXMLObject.setSystemId() method before using readFrom( Reader reader ) instead of this method.

Reads data from the given reader using the specified base URI for parsing.

Parameters:
reader - a character input stream .
systemId - the base URI to resolve relative references.
Throws:
TStreamReadException - signals an error while attempting to read the stream.

writeTo

void writeTo(java.io.OutputStream outputStream,
             java.lang.String encoding)
             throws TStreamWriteException
Writes the XML data to the given outputStream using the given encoding.

Parameters:
outputStream - the byte output stream.
encoding - the encoding used for serializing the XML document.
Throws:
TStreamWriteException - signals an error while attempting to write the stream.

writeTo

void writeTo(java.io.Writer writer,
             java.lang.String encoding)
             throws TStreamWriteException
Writes the XML data to the given writer using the given encoding.

Parameters:
outputStream - the character output stream.
encoding - the encoding used for serializing the XML document.
Throws:
TStreamWriteException - signals an error while attempting to write the stream.


Copyright (c) 2013 Software AG. All Rights Reserved.