public class SaxWriterImpl extends SaxEntityImpl implements SaxWriter
Modifier and Type | Class and Description |
---|---|
private static class |
SaxWriterImpl.FileOutputStreamWrapper
Special wrapper to wrap write to file in lazy mode.
|
private static class |
SaxWriterImpl.LongcharOutputStream
Special wrapper to wrap write to longchar in lazy mode.
|
private static class |
SaxWriterImpl.MemptrOutputStream
Special wrapper to wrap write to memptr in lazy mode.
|
SaxWriter.WriteStatus
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_XML_VERSION
default version of XML
|
private java.lang.String |
encoding
encoding of SAX-Writer
|
private boolean |
formatted
formatted attribute
|
private boolean |
fragment
fragment attribute.
|
private static java.util.logging.Logger |
LOG
Anonymous log instance.
|
private java.io.OutputStream |
outputWrapper
Current output source of SAX-Writer
|
private logical |
standalone
standalone attribute.
|
private boolean |
strict
strict attribute.
|
private java.lang.String |
version
version of xml
|
private javax.xml.stream.XMLStreamWriter |
writer
XML stream cursor writer.
|
private SaxWriter.WriteStatus |
writeStatus
Current status of SAX-Writer
|
isValid
name, nextSibling, prevSibling
instProc
SAX_WRITE_BEGIN, SAX_WRITE_COMPLETE, SAX_WRITE_CONTENT, SAX_WRITE_ELEMENT, SAX_WRITE_ERROR, SAX_WRITE_IDLE, SAX_WRITE_TAG
Constructor and Description |
---|
SaxWriterImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
logical |
declareNamespace(java.lang.String uri)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
declareNamespace(java.lang.String uri,
java.lang.String prefix)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
declareNamespace(java.lang.String uri,
Text prefix)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
declareNamespace(Text uri)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
declareNamespace(Text uri,
java.lang.String prefix)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
declareNamespace(Text uri,
Text prefix)
Adds namespace declaration to a tag in a XML document associated with SAX-Writer object.
|
logical |
endDocument()
Closes the XML document associated with SAX-Writer object.
|
logical |
endElement(java.lang.String name)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
logical |
endElement(java.lang.String name,
java.lang.String uri)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
logical |
endElement(java.lang.String name,
Text uri)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
logical |
endElement(Text name)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
logical |
endElement(Text name,
java.lang.String uri)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
logical |
endElement(Text name,
Text uri)
Ends an XML node of the given name in a XML document associated with SAX-Writer object.
|
character |
getEncoding()
Gets the value of the encoding attribute for the given SAX-Writer object.
|
logical |
getFormatted()
Gets the value of the formatted attribute for the given SAX-Writer object.
|
logical |
getFragment()
Gets the value of the fragment attribute for the given SAX-Writer object.
|
logical |
getStandalone()
Gets the value of the standalone attribute for the given SAX-Writer object.
|
logical |
getStrict()
Gets the value of the strict attribute for the given SAX-Writer object.
|
character |
getVersion()
Gets the value of the version attribute for the given SAX-Writer object.
|
integer |
getWriteStatus()
Gets the value of the write-status attribute for the given SAX-Writer object.
|
protected boolean |
hasName()
Check if this resource supports the NAME attribute.
|
logical |
insertAttribute(Text name,
Text value,
Text uri)
Adding the single attribute to the start tag in the XML document if applied for SAX writer
object.
|
logical |
reset()
Closes the open stream and resets the SAX-Writer object to the default state.
|
protected boolean |
resourceDelete()
Delete the resource.
|
(package private) static java.lang.String |
serializeNodeToString(org.w3c.dom.Node node)
This method is used to serialize Node from DOM to string.
|
void |
setEncoding(character encoding)
Sets the new value of the encoding attribute for the given SAX-Writer object.
|
void |
setEncoding(java.lang.String encoding)
Sets the new value of the encoding attribute for the given SAX-Writer object.
|
void |
setFormatted(boolean isFormatted)
Sets the value of the formatted attribute for the given SAX-Writer object.
|
void |
setFormatted(logical isFormatted)
Sets the value of the formatted attribute for the given SAX-Writer object.
|
void |
setFragment(boolean isFragment)
Sets the value of the fragment attribute for the given SAX-Writer object.
|
void |
setFragment(logical isFragment)
Sets the value of the fragment attribute for the given SAX-Writer object.
|
logical |
setOutputDestination(character mode,
java.lang.Object destination)
Specifies the output destination of the XML document to be created by a SAX-Writer object.
|
logical |
setOutputDestination(java.lang.String mode,
java.lang.Object destination)
Specifies the output destination of the XML document to be created by a SAX-Writer object.
|
void |
setStandalone(boolean isStandalone)
Sets the value of the standalone attribute for the given SAX-Writer object.
|
void |
setStandalone(logical isStandalone)
Sets the value of the standalone attribute for the given SAX-Writer object.
|
void |
setStrict(boolean isStrict)
Sets the value of the strict attribute for the given SAX-Writer object.
|
void |
setStrict(logical isStrict)
Sets the value of the strict attribute for the given SAX-Writer object.
|
void |
setVersion(character version)
Sets the new value of the version attribute for the given SAX-Writer object.
|
void |
setVersion(java.lang.String version)
Sets the new value of the version attribute for the given SAX-Writer object.
|
logical |
startDocument()
Creates the XML document with the prolog information.
|
logical |
startElement(java.lang.String name)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(java.lang.String name,
handle handle)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(java.lang.String name,
java.lang.String uri)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(java.lang.String name,
java.lang.String uri,
handle handle)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(java.lang.String name,
Text uri)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(java.lang.String name,
Text uri,
handle handle)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name,
handle handle)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name,
java.lang.String uri)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name,
java.lang.String uri,
handle handle)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name,
Text uri)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
startElement(Text name,
Text uri,
handle attr)
Starts the XML node according to the specified name, namespace URI and handle of the SAX
attribute object.
|
logical |
writeCdata(java.lang.String cdataBlock)
Adds CDATA block to the XML document crating by SAX-Writer object.
|
logical |
writeCdata(Text cdataBlock)
Adds CDATA block to the XML document crating by SAX-Writer object.
|
private logical |
writeCharacterData(java.lang.String content)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeCharacters(java.lang.String chardata)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeCharacters(Text chardata)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeComment(java.lang.String comment)
Adds comment to the XML document crating by SAX-Writer object.
|
logical |
writeComment(Text comment)
Adds comment to the XML document crating by SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata,
java.lang.String uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata,
java.lang.String uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata,
Text uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
java.lang.String chardata,
Text uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata,
java.lang.String uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata,
java.lang.String uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata,
Text uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(java.lang.String name,
Text chardata,
Text uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata,
java.lang.String uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata,
java.lang.String uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata,
Text uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
java.lang.String chardata,
Text uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata,
java.lang.String uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata,
java.lang.String uri,
handle handle)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata,
Text uri)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeDataElement(Text name,
Text chardata,
Text uri,
handle attr)
Creates complete XML node with a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name,
java.lang.String uri)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name,
java.lang.String uri,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name,
Text uri)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(java.lang.String name,
Text uri,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name,
java.lang.String uri)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name,
java.lang.String uri,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name,
Text uri)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEmptyElement(Text name,
Text uri,
handle attr)
Creates an empty node in a given SAX-Writer object.
|
logical |
writeEntityRef(java.lang.String value)
Adds an entity referenc to the XML document associated with given SAX-Writer object.
|
logical |
writeEntityRef(Text value)
Adds an entity referenc to the XML document associated with given SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
java.lang.String systemId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
java.lang.String systemId,
java.lang.String publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
java.lang.String systemId,
Text publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
Text systemId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
Text systemId,
java.lang.String publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(java.lang.String name,
Text systemId,
Text publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
java.lang.String systemId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
java.lang.String systemId,
java.lang.String publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
java.lang.String systemId,
Text publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
Text systemId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
Text systemId,
java.lang.String publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeExternalDtd(Text name,
Text systemId,
Text publicId)
Adds an external DTD reference to the XML document associated with a SAX-Writer object.
|
logical |
writeFragment(handle xhandle)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeFragment(java.lang.String chardata)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeFragment(Text chardata)
Adds character data to the XML document crating by SAX-Writer object.
|
logical |
writeProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a processing instruction node in XML document for given SAX-Writer object.
|
logical |
writeProcessingInstruction(java.lang.String target,
Text data)
Creates a processing instruction node in XML document for given SAX-Writer object.
|
logical |
writeProcessingInstruction(Text target,
java.lang.String data)
Creates a processing instruction node in XML document for given SAX-Writer object.
|
logical |
writeProcessingInstruction(Text target,
Text data)
Creates a processing instruction node in XML document for given SAX-Writer object.
|
static void |
writeXMLDeclaration(javax.xml.stream.XMLStreamWriter outputWriter,
java.lang.String xmlVersion,
java.lang.String encodingName,
java.lang.Boolean standalone)
This method is used to write the XML document declaration at the beginning of an XML
document.
|
getADMData, getUniqueID, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, invalidReadWriteModeError, invalidStatusAttributeError, invalidStatusMethodError, removeAttribute, removeAttribute, setADMData, setADMData, writerOutputError
addSchemaLocation, addSchemaLocation, addSchemaLocation, addSchemaLocation, getNonamespaceSchemaLocation, hasNextSibling, hasPrevSibling, invalidArgumentAssignError, invalidArgumentError, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, setNonamespaceSchemaLocation, setNonamespaceSchemaLocation, valid
delete, firstResource, firstResource, getHead, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, getPrivateData, getTail, hasNameReadOnly, hasParent, hasPrivateData, interlink, isChained, lastResource, lastResource, moveInChain, name, name, name, readOnlyError, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData
getResourceType, id, id, implicitDeletion, instantiatingProcedure, invalidAttribute, setInstantiatingProcedure, type, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute
addSchemaLocation, addSchemaLocation, addSchemaLocation, addSchemaLocation, getNonamespaceSchemaLocation, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, setNonamespaceSchemaLocation, setNonamespaceSchemaLocation
id, id, unknown, valid
getUniqueID
getADMData, setADMData, setADMData
getResourceType
private static final java.lang.String DEFAULT_XML_VERSION
private static final java.util.logging.Logger LOG
private SaxWriter.WriteStatus writeStatus
private java.io.OutputStream outputWrapper
private java.lang.String encoding
private java.lang.String version
private boolean formatted
private boolean strict
private boolean fragment
private logical standalone
private javax.xml.stream.XMLStreamWriter writer
public character getEncoding()
getEncoding
in interface Encoding
public void setEncoding(java.lang.String encoding)
setEncoding
in interface Encoding
encoding
- The encoding value to be set for the given writer.public void setEncoding(character encoding)
setEncoding
in interface Encoding
encoding
- The encoding value to be set for the given writer.public logical getFormatted()
getFormatted
in interface SaxWriter
true
in case of formatted false
otherwise.public void setFormatted(logical isFormatted)
setFormatted
in interface SaxWriter
isFormatted
- The true
in case of formatted false
otherwise.public void setFormatted(boolean isFormatted)
setFormatted
in interface SaxWriter
isFormatted
- The true
in case of formatted false
otherwise.public logical getStrict()
public void setStrict(logical isStrict)
public void setStrict(boolean isStrict)
public logical getFragment()
getFragment
in interface SaxWriter
true
in case of fragment false
for full document.public void setFragment(logical isFragment)
setFragment
in interface SaxWriter
isFragment
- The true
in case of fragment false
for full document.public void setFragment(boolean isFragment)
setFragment
in interface SaxWriter
isFragment
- The true
in case of fragment false
for full document.public logical getStandalone()
getStandalone
in interface SaxWriter
public void setStandalone(logical isStandalone)
setStandalone
in interface SaxWriter
isStandalone
- The true
in case of standalone false
otherwise.public void setStandalone(boolean isStandalone)
setStandalone
in interface SaxWriter
isStandalone
- The true
in case of standalone false
otherwise.public character getVersion()
getVersion
in interface SaxWriter
public void setVersion(java.lang.String version)
setVersion
in interface SaxWriter
version
- The version value to be set for the given writer.public void setVersion(character version)
setVersion
in interface SaxWriter
version
- The version value to be set for the given writer.public integer getWriteStatus()
SaxWriter
interface.
Documentation states that the type of this attribute is character, but this is incorrect. The attribute's real type is integer, same as PARSE-STATUS for the SAX-Reader object.
getWriteStatus
in interface SaxWriter
public logical declareNamespace(Text uri, Text prefix)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.prefix
- The prefix of the namespace to add.true
in case of success false
otherwise.public logical declareNamespace(java.lang.String uri, Text prefix)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.prefix
- The prefix of the namespace to add.true
in case of success false
otherwise.public logical declareNamespace(Text uri, java.lang.String prefix)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.prefix
- The prefix of the namespace to add.true
in case of success false
otherwise.public logical declareNamespace(java.lang.String uri, java.lang.String prefix)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.prefix
- The prefix of the namespace to add.true
in case of success false
otherwise.public logical declareNamespace(java.lang.String uri)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.true
in case of success false
otherwise.public logical declareNamespace(Text uri)
declareNamespace
in interface SaxWriter
uri
- The URI namespace to add.true
in case of success false
otherwise.public logical endDocument()
endDocument
in interface SaxWriter
true
in case of success false
otherwise.public logical endElement(Text name, Text uri)
endElement
in interface SaxWriter
name
- The name of the node to end.uri
- The URI namespace of the node to end.true
in case of success false
otherwise.public logical endElement(java.lang.String name, Text uri)
endElement
in interface SaxWriter
name
- The name of the node to end.uri
- The URI namespace of the node to end.true
in case of success false
otherwise.public logical endElement(Text name, java.lang.String uri)
endElement
in interface SaxWriter
name
- The name of the node to end.uri
- The URI namespace of the node to end.true
in case of success false
otherwise.public logical endElement(java.lang.String name, java.lang.String uri)
endElement
in interface SaxWriter
name
- The name of the node to end.uri
- The URI namespace of the node to end.true
in case of success false
otherwise.public logical endElement(java.lang.String name)
endElement
in interface SaxWriter
name
- The name of the node to end.true
in case of success false
otherwise.public logical endElement(Text name)
endElement
in interface SaxWriter
name
- The name of the node to end.true
in case of success false
otherwise.public logical setOutputDestination(java.lang.String mode, java.lang.Object destination)
setOutputDestination
in interface SaxWriter
mode
- The type of the destination to write to. Can be 'FILE', 'STREAM', 'MEMPTR',
'STREAM-HANDLE' or 'LONGCHAR'.destination
- The appropriate object to write.true
in case of success false
otherwise.public logical setOutputDestination(character mode, java.lang.Object destination)
setOutputDestination
in interface SaxWriter
mode
- The type of the destination to write to. Can be 'FILE', 'STREAM', 'MEMPTR',
'STREAM-HANDLE' or 'LONGCHAR'.destination
- The appropriate object to write.true
in case of success false
otherwise.public logical startDocument()
startDocument
in interface SaxWriter
true
in case of success false
otherwise.public logical startElement(Text name)
startElement
in interface SaxWriter
name
- The name of the element.true
in case of success false
otherwise.public logical startElement(java.lang.String name)
startElement
in interface SaxWriter
name
- The name of the element.true
in case of success false
otherwise.public logical startElement(Text name, handle handle)
startElement
in interface SaxWriter
name
- The name of the element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical startElement(java.lang.String name, handle handle)
startElement
in interface SaxWriter
name
- The name of the element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical startElement(Text name, Text uri)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical startElement(java.lang.String name, Text uri)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical startElement(Text name, java.lang.String uri)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical startElement(java.lang.String name, java.lang.String uri)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical startElement(java.lang.String name, Text uri, handle handle)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical startElement(Text name, java.lang.String uri, handle handle)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical startElement(java.lang.String name, java.lang.String uri, handle handle)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical insertAttribute(Text name, Text value, Text uri)
insertAttribute
in interface SaxEntity
insertAttribute
in class SaxEntityImpl
name
- The attribute name to insert.value
- The attribute value to insert.uri
- The URI of the attribute to insert or '?' for unknown value.true
in case of success false
otherwise.public logical startElement(Text name, Text uri, handle attr)
startElement
in interface SaxWriter
name
- The name of the element.uri
- The namespace URI of the given element.attr
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeCdata(java.lang.String cdataBlock)
writeCdata
in interface SaxWriter
cdataBlock
- The data to be written with CDATA block.true
in case of success false
otherwise.public logical writeCdata(Text cdataBlock)
writeCdata
in interface SaxWriter
cdataBlock
- The data to be written with CDATA block.true
in case of success false
otherwise.public logical writeCharacters(java.lang.String chardata)
writeCharacters
in interface SaxWriter
chardata
- The character or longchar data to be written.true
in case of success false
otherwise.public logical writeCharacters(Text chardata)
writeCharacters
in interface SaxWriter
chardata
- The character or longchar data to be written.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata, Text uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata, Text uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata, Text uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata, Text uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata, java.lang.String uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata, java.lang.String uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata, java.lang.String uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata, java.lang.String uri)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata, Text uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata, Text uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata, java.lang.String uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata, Text uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, Text chardata, java.lang.String uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(Text name, java.lang.String chardata, java.lang.String uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(java.lang.String name, java.lang.String chardata, java.lang.String uri, handle handle)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.handle
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeDataElement(Text name, Text chardata, Text uri, handle attr)
writeDataElement
in interface SaxWriter
name
- The name of the element.chardata
- The XML text to write for the given element.uri
- The namespace URI of the given element.attr
- The handle of the SAX-Attribute object to be added into XML document.true
in case of success false
otherwise.public logical writeFragment(java.lang.String chardata)
writeFragment
in interface SaxWriter
chardata
- The character or longchar data to be written.true
in case of success false
otherwise.public logical writeFragment(Text chardata)
writeFragment
in interface SaxWriter
chardata
- The character or longchar data to be written.true
in case of success false
otherwise.private logical writeCharacterData(java.lang.String content)
content
- string to write.true
if success, false
otherwise.public logical writeFragment(handle xhandle)
writeFragment
in interface SaxWriter
xhandle
- The valid X-Nodereference handle containing XML text.true
in case of success false
otherwise.public logical reset()
public logical writeComment(java.lang.String comment)
writeComment
in interface SaxWriter
comment
- The character or longchar text comment to be written.true
in case of success false
otherwise.public logical writeComment(Text comment)
writeComment
in interface SaxWriter
comment
- The character or longchar text comment to be written.true
in case of success false
otherwise.public logical writeEmptyElement(Text name)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.true
in case of success false
otherwise.public logical writeEmptyElement(Text name, Text uri)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name, Text uri)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.true
in case of success false
otherwise.public logical writeEmptyElement(Text name, java.lang.String uri)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name, java.lang.String uri)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.true
in case of success false
otherwise.public logical writeEmptyElement(Text name, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name, Text uri, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEmptyElement(Text name, java.lang.String uri, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEmptyElement(java.lang.String name, java.lang.String uri, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEmptyElement(Text name, Text uri, handle attr)
writeEmptyElement
in interface SaxWriter
name
- The character or longchar element name to be written.uri
- The character or longchar element URI to be written.attr
- The handle of the SAX-Attributes object to be used.true
in case of success false
otherwise.public logical writeEntityRef(java.lang.String value)
writeEntityRef
in interface SaxWriter
value
- The character or longchar value to be written.true
in case of success false
otherwise.public logical writeEntityRef(Text value)
writeEntityRef
in interface SaxWriter
value
- The character or longchar value to be written.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, Text systemId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, Text systemId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, java.lang.String systemId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, java.lang.String systemId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, Text systemId, Text publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, java.lang.String systemId, Text publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, java.lang.String systemId, Text publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, Text systemId, java.lang.String publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, Text systemId, java.lang.String publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, java.lang.String systemId, java.lang.String publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(java.lang.String name, java.lang.String systemId, java.lang.String publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeExternalDtd(Text name, Text systemId, Text publicId)
writeExternalDtd
in interface SaxWriter
name
- The character or longchar name of the document root node.systemId
- The character or longchar system ID of the DTD.publicId
- The character or longchar public ID of the DTD.true
in case of success false
otherwise.public logical writeProcessingInstruction(java.lang.String target, Text data)
writeProcessingInstruction
in interface SaxWriter
target
- The character or longchar target of the processing instruction.data
- The character or longchar data associated with the processing instruction.true
in case of success false
otherwise.public logical writeProcessingInstruction(Text target, java.lang.String data)
writeProcessingInstruction
in interface SaxWriter
target
- The character or longchar target of the processing instruction.data
- The character or longchar data associated with the processing instruction.true
in case of success false
otherwise.public logical writeProcessingInstruction(java.lang.String target, java.lang.String data)
writeProcessingInstruction
in interface SaxWriter
target
- The character or longchar target of the processing instruction.data
- The character or longchar data associated with the processing instruction.true
in case of success false
otherwise.public logical writeProcessingInstruction(Text target, Text data)
writeProcessingInstruction
in interface SaxWriter
target
- The character or longchar target of the processing instruction.data
- The character or longchar data associated with the processing instruction.true
in case of success false
otherwise.protected boolean hasName()
hasName
in class HandleChain
false
.protected boolean resourceDelete()
resourceDelete
in class XCommonImpl
true
if the resource was deleted.static java.lang.String serializeNodeToString(org.w3c.dom.Node node) throws javax.xml.transform.TransformerFactoryConfigurationError, javax.xml.transform.TransformerException
node
- Node instance from DOM model.javax.xml.transform.TransformerFactoryConfigurationError
- If an error occurs writing the identifier.javax.xml.transform.TransformerException
- If an error occurs writing the identifier.public static void writeXMLDeclaration(javax.xml.stream.XMLStreamWriter outputWriter, java.lang.String xmlVersion, java.lang.String encodingName, java.lang.Boolean standalone) throws javax.xml.stream.XMLStreamException
outputWriter
- XMLStreamWriter instance.xmlVersion
- Xml version which will specify in xml header.encodingName
- encoding which will specify in xml header.standalone
- standalone flag.javax.xml.stream.XMLStreamException
- If an error occurs writing the identifier.