com.softwareag.tamino.db.api.objectModel.stream
Class TStreamWritingDeclHandler

java.lang.Object
  extended by com.softwareag.tamino.db.api.objectModel.stream.TStreamWritingDeclHandler
All Implemented Interfaces:
org.xml.sax.ext.DeclHandler

public class TStreamWritingDeclHandler
extends java.lang.Object
implements org.xml.sax.ext.DeclHandler

TStreamWritingDeclHandler implements the DeclHandler interface. An instance of this class is responsible to write doctype declaration SAX events thrown by an associated parser to a given data sunk.

Version:
$Revision: 1.9 $
Author:
Marcus Schreyer

Field Summary
static java.lang.String PROPERTY_ID
          The property id according to which a concrete LexicalHandler instance is set on an XMLReader instance.
 
Constructor Summary
TStreamWritingDeclHandler(java.io.Writer writer)
          Initialzes the handler with the given character output stream..
 
Method Summary
 void attributeDecl(java.lang.String eName, java.lang.String aName, java.lang.String type, java.lang.String valueDefault, java.lang.String value)
          Report an attribute type declaration.
 void elementDecl(java.lang.String name, java.lang.String model)
          Report an element type declaration.
 void externalEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Report a parsed external entity declaration.
 boolean hasWrittenDeclEvents()
           
 void internalEntityDecl(java.lang.String name, java.lang.String value)
          Report an internal entity declaration.
 void setWriter(TStreamWriterHelper writerHelper)
          Sets a new character output stream to which events can be written to.
 void setWriter(java.io.Writer writer)
          Sets a new character output stream to which events can be written to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ID

public static final java.lang.String PROPERTY_ID
The property id according to which a concrete LexicalHandler instance is set on an XMLReader instance. E.g.
 xmlReader.setProperty( TSAXWritingLexicalHandler.PROPERTY_ID , lexicalHandler ); 

See Also:
Constant Field Values
Constructor Detail

TStreamWritingDeclHandler

public TStreamWritingDeclHandler(java.io.Writer writer)
Initialzes the handler with the given character output stream..

Method Detail

setWriter

public void setWriter(java.io.Writer writer)
Sets a new character output stream to which events can be written to.


setWriter

public void setWriter(TStreamWriterHelper writerHelper)
Sets a new character output stream to which events can be written to.


attributeDecl

public void attributeDecl(java.lang.String eName,
                          java.lang.String aName,
                          java.lang.String type,
                          java.lang.String valueDefault,
                          java.lang.String value)
                   throws org.xml.sax.SAXException
Report an attribute type declaration.

Specified by:
attributeDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

elementDecl

public void elementDecl(java.lang.String name,
                        java.lang.String model)
                 throws org.xml.sax.SAXException
Report an element type declaration.

Specified by:
elementDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

externalEntityDecl

public void externalEntityDecl(java.lang.String name,
                               java.lang.String publicId,
                               java.lang.String systemId)
                        throws org.xml.sax.SAXException
Report a parsed external entity declaration.

Specified by:
externalEntityDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

internalEntityDecl

public void internalEntityDecl(java.lang.String name,
                               java.lang.String value)
                        throws org.xml.sax.SAXException
Report an internal entity declaration.

Specified by:
internalEntityDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

hasWrittenDeclEvents

public boolean hasWrittenDeclEvents()


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