public class TJDOMAdapter
extends TXMLObject
implements java.io.Serializable
Constructor and Description |
---|
TJDOMAdapter()
Default Constructor.
|
TJDOMAdapter(Document document)
Special Constructor.
|
TJDOMAdapter(Element element)
Special Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canWriteToOutputStream()
Indicates if this instance can be currently written to an output stream.
|
java.lang.String |
getDocname()
Gets the ino:docname from this Tamino data object.
|
java.lang.String |
getDoctype()
Gets the doctype for this Tamino data object.
|
java.lang.Object |
getDocument()
Gets the document instance of the underlying object model.
|
java.lang.Object |
getElement()
Gets element instance of the underlying object model.
|
java.lang.String |
getId()
Gets the ino:id attribute for the underlying XML data.
|
protected void |
readDocumentStateFrom(java.io.ObjectInputStream in)
This abstract method serves as a plugin method for readStateFrom.
|
void |
readFrom(java.io.InputStream inputStream)
Reads data from inputStream and initializes the concrete object.
|
void |
readFrom(java.io.InputStream inputStream,
java.lang.String systemId)
Reads data from inputStream and initializes the concrete object.
|
void |
readFrom(java.io.Reader reader)
Reads data from reader and initializes the concrete object.
|
void |
readFrom(java.io.Reader reader,
java.lang.String systemId)
Reads data from reader and initializes the concrete object.
|
void |
setDocname(java.lang.String docname)
Sets the ino:docname on this JDOM specific TXMLObject.
|
void |
setId(java.lang.String inoId)
Sets the ino:id for the XML instance.
|
protected void |
writeDocumentStateTo(java.io.ObjectOutputStream out)
This abstract method serves as a plugin method for writeStateTo.
|
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.
|
public TJDOMAdapter()
public TJDOMAdapter(Document document)
public TJDOMAdapter(Element element)
public void setDocname(java.lang.String docname)
docname
- is the ino:docname attribute of the data object.public void setId(java.lang.String inoId)
public java.lang.String getDocname()
public java.lang.String getId()
public java.lang.String getDoctype()
public java.lang.Object getDocument()
public java.lang.Object getElement()
public void readFrom(java.io.InputStream inputStream) throws TStreamReadException
inputStream
- denotes the byte stream from which the object is newly initialized.TStreamReadException
- due to any problems when reading the stream.public void readFrom(java.io.InputStream inputStream, java.lang.String systemId) throws TStreamReadException
inputStream
- denotes the byte stream from which the object is newly initialized.systemId
- the base URI of the data to resolve relative references.TStreamReadException
- due to any problems when reading the stream.public void readFrom(java.io.Reader reader) throws TStreamReadException
reader
- denotes the character stream from which the object is newly initialized.TStreamReadException
- due to any problems when reading the stream.public void readFrom(java.io.Reader reader, java.lang.String systemId) throws TStreamReadException
reader
- denotes the character stream from which the object is newly initialized.systemId
- the base URI to resolve relative references.TStreamReadException
- due to any problems when reading the stream.public void writeTo(java.io.OutputStream outputStream, java.lang.String encoding) throws TStreamWriteException
outputStream
- the byte output stream.encoding
- the encoding used for serializing the XML document.TStreamWriteException
- signals an error while attempting to write the stream.public void writeTo(java.io.Writer writer, java.lang.String encoding) throws TStreamWriteException
outputStream
- the character output stream.encoding
- the encoding used for serializing the XML document.TStreamWriteException
- signals an error while attempting to write the stream.protected boolean canWriteToOutputStream()
protected void writeDocumentStateTo(java.io.ObjectOutputStream out) throws java.io.IOException
out
- the ObjectOutputStream needed for serialization.java.io.IOException
protected void readDocumentStateFrom(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
out
- the ObjectOutputStream needed for serialization.java.io.IOException
java.lang.ClassNotFoundException
Copyright (c) ${year.timestamp} Software AG. All Rights Reserved.