|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.dom4j.io.XMLWriter
XMLWriter takes a DOM4J tree and formats it to a
stream as XML.
It can also take SAX events too so can be used by SAX clients as this object
implements the ContentHandler and LexicalHandler interfaces.
as well. This formatter performs typical document
formatting. The XML declaration and processing instructions are
always on their own lines. An OutputFormat object can be
used to define how whitespace is handled when printing and allows various
configuration options, such as to allow suppression of the XML declaration,
the encoding declaration or whether empty documents are collapsed.
There are write(...) methods to print any of the
standard DOM4J classes, including Document and
Element, to either a Writer or an
OutputStream. Warning: using your own
Writer may cause the writer's preferred character
encoding to be ignored. If you use encodings other than UTF8, we
recommend using the method that takes an OutputStream instead.
| Field Summary | |
protected static OutputFormat |
DEFAULT_FORMAT
|
protected int |
lastOutputNodeType
Stores the last type of node written so algorithms can refer to the previous node type |
protected static java.lang.String[] |
LEXICAL_HANDLER_NAMES
|
protected boolean |
preserve
Stores the xml:space attribute value of preserve for whitespace flag |
protected java.io.Writer |
writer
The Writer used to output to |
| Constructor Summary | |
XMLWriter()
|
|
XMLWriter(OutputFormat format)
|
|
XMLWriter(java.io.OutputStream out)
|
|
XMLWriter(java.io.OutputStream out,
OutputFormat format)
|
|
XMLWriter(java.io.Writer writer)
|
|
XMLWriter(java.io.Writer writer,
OutputFormat format)
|
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Filter a character data event. |
void |
close()
Closes the underlying Writer |
void |
comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document. |
protected java.io.Writer |
createWriter(java.io.OutputStream outStream,
java.lang.String encoding)
Get an OutputStreamWriter, use preferred encoding. |
protected int |
defaultMaximumAllowedCharacter()
Returns the maximum allowed character code that should be allowed unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO-* (8 bit). |
void |
endCDATA()
Report the end of a CDATA section. |
void |
endDocument()
Filter an end document event. |
void |
endDTD()
Report the end of DTD declarations. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Filter an end element event. |
void |
endEntity(java.lang.String name)
Report the end of an entity. |
void |
endPrefixMapping(java.lang.String prefix)
Filter an end Namespace prefix mapping event. |
protected java.lang.String |
escapeAttributeEntities(java.lang.String text)
This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes. |
protected java.lang.String |
escapeElementEntities(java.lang.String text)
This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes. |
void |
flush()
Flushes the underlying Writer |
LexicalHandler |
getLexicalHandler()
|
int |
getMaximumAllowedCharacter()
Returns the maximum allowed character code that should be allowed unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO-* (8 bit). |
protected OutputFormat |
getOutputFormat()
Lets subclasses get at the current format object, so they can call setTrimText, setNewLines, etc. |
java.lang.Object |
getProperty(java.lang.String name)
Look up the value of a property. |
protected void |
handleException(java.io.IOException e)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Filter an ignorable whitespace event. |
protected void |
indent()
|
protected void |
installLexicalHandler()
|
protected boolean |
isElementSpacePreserved(Element element)
Determines if element is a special case of XML elements where it contains an xml:space attribute of "preserve". |
boolean |
isEscapeText()
|
protected boolean |
isExpandEmptyElements()
|
protected boolean |
isNamespaceDeclaration(Namespace ns)
|
void |
notationDecl(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
Filter a notation declaration event. |
void |
parse(InputSource source)
Parse a document. |
void |
println()
Writes the new line text to the underlying Writer |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Filter a processing instruction event. |
boolean |
resolveEntityRefs()
|
void |
setDocumentLocator(Locator locator)
Filter a new document locator event. |
void |
setEscapeText(boolean escapeText)
Sets whether text output should be escaped or not. |
void |
setIndentLevel(int indentLevel)
Set the initial indentation level. |
void |
setLexicalHandler(LexicalHandler handler)
|
void |
setMaximumAllowedCharacter(int maximumAllowedCharacter)
Sets the maximum allowed character code that should be allowed unescaped such as 127 in US-ASCII (7 bit) or 255 in ISO-* (8 bit) or -1 to not escape any characters (other than the special XML characters like < > &) If this is not explicitly set then it is defaulted from the encoding. |
void |
setOutputStream(java.io.OutputStream out)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set the value of a property. |
void |
setResolveEntityRefs(boolean resolve)
|
void |
setWriter(java.io.Writer writer)
|
protected boolean |
shouldEncodeChar(char c)
Should the given character be escaped. |
void |
startCDATA()
Report the start of a CDATA section. |
void |
startDocument()
Filter a start document event. |
void |
startDTD(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
Report the start of DTD declarations, if any. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attributes)
Filter a start element event. |
void |
startEntity(java.lang.String name)
Report the beginning of some internal and external XML entities. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Filter a start Namespace prefix mapping event. |
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID,
java.lang.String notationName)
Filter an unparsed entity declaration event. |
void |
write(Attribute attribute)
Writes the given Attribute. |
void |
write(CDATA cdata)
Writes the given CDATA. |
void |
write(Comment comment)
Writes the given Comment. |
void |
write(Document doc)
This will print the Document to the current Writer. |
void |
write(DocumentType docType)
Writes the given DocumentType. |
void |
write(Element element)
Writes the , including
its s, and its value, and all
its content (child nodes) to the current Writer. |
void |
write(Entity entity)
Writes the given Entity. |
void |
write(Namespace namespace)
Writes the given Namespace. |
void |
write(Node node)
Writes the given Node. |
void |
write(java.lang.Object object)
Writes the given object which should be a String, a Node or a List of Nodes. |
void |
write(ProcessingInstruction processingInstruction)
Writes the given ProcessingInstruction. |
void |
write(java.lang.String text)
Print out a String, Perfoms
the necessary entity escaping and whitespace stripping. |
void |
write(Text text)
Writes the given Text. |
protected void |
writeAttribute(Attribute attribute)
|
protected void |
writeAttribute(Attributes attributes,
int index)
|
protected void |
writeAttributes(Attributes attributes)
|
protected void |
writeAttributes(Element element)
Writes the attributes of the given element |
protected void |
writeCDATA(java.lang.String text)
|
void |
writeClose(Element element)
Writes the closing tag of an Element |
protected void |
writeClose(java.lang.String qualifiedName)
|
protected void |
writeComment(java.lang.String text)
|
protected void |
writeDeclaration()
This will write the declaration to the given Writer. |
protected void |
writeDocType(DocumentType docType)
|
protected void |
writeDocType(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
|
protected void |
writeElement(Element element)
|
protected void |
writeElementContent(Element element)
Outputs the content of the given element. |
protected void |
writeEmptyElementClose(java.lang.String qualifiedName)
|
protected void |
writeEntity(Entity entity)
|
protected void |
writeEntityRef(java.lang.String name)
|
protected void |
writeEscapeAttributeEntities(java.lang.String text)
|
protected void |
writeNamespace(Namespace namespace)
|
protected void |
writeNamespace(java.lang.String prefix,
java.lang.String uri)
Writes the SAX namepsaces |
protected void |
writeNamespaces()
Writes the SAX namepsaces |
protected void |
writeNode(Node node)
|
protected void |
writeNodeText(Node node)
This method is used to write out Nodes that contain text and still allow for xml:space to be handled properly. |
void |
writeOpen(Element element)
Writes the opening tag of an Element,
including its Attributes
but without its content. |
protected void |
writePrintln()
This will print a new line only if the newlines flag was set to true |
protected void |
writeProcessingInstruction(ProcessingInstruction processingInstruction)
|
protected void |
writeString(java.lang.String text)
|
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, parse, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String[] LEXICAL_HANDLER_NAMES
protected static final OutputFormat DEFAULT_FORMAT
protected int lastOutputNodeType
protected boolean preserve
protected java.io.Writer writer
| Constructor Detail |
public XMLWriter(java.io.Writer writer)
public XMLWriter(java.io.Writer writer,
OutputFormat format)
public XMLWriter()
public XMLWriter(java.io.OutputStream out)
throws java.io.UnsupportedEncodingException
public XMLWriter(java.io.OutputStream out,
OutputFormat format)
throws java.io.UnsupportedEncodingException
public XMLWriter(OutputFormat format)
throws java.io.UnsupportedEncodingException
| Method Detail |
public void setWriter(java.io.Writer writer)
public void setOutputStream(java.io.OutputStream out)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic boolean isEscapeText()
public void setEscapeText(boolean escapeText)
public void setIndentLevel(int indentLevel)
indentLevel - the number of indents to start withpublic int getMaximumAllowedCharacter()
public void setMaximumAllowedCharacter(int maximumAllowedCharacter)
maximumAllowedCharacter - The maximumAllowedCharacter to set
public void flush()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
public void println()
throws java.io.IOException
java.io.IOException
public void write(Attribute attribute)
throws java.io.IOException
Attribute.
attribute - Attribute to output.
java.io.IOException
public void write(Document doc)
throws java.io.IOException
This will print the Document to the current Writer.
Warning: using your own Writer may cause the writer's preferred character encoding to be ignored. If you use encodings other than UTF8, we recommend using the method that takes an OutputStream instead.
Note: as with all Writers, you may need to flush() yours after this method returns.
doc - Document to format.
IOException - - if there's any problem writing.
java.io.IOException
public void write(Element element)
throws java.io.IOException
Writes the , including
its Elements, and its value, and all
its content (child nodes) to the current Writer.Attribute
element - Element to output.
java.io.IOException
public void write(CDATA cdata)
throws java.io.IOException
CDATA.
cdata - CDATA to output.
java.io.IOException
public void write(Comment comment)
throws java.io.IOException
Comment.
comment - Comment to output.
java.io.IOException
public void write(DocumentType docType)
throws java.io.IOException
DocumentType.
docType - DocumentType to output.
java.io.IOException
public void write(Entity entity)
throws java.io.IOException
Entity.
entity - Entity to output.
java.io.IOException
public void write(Namespace namespace)
throws java.io.IOException
Namespace.
namespace - Namespace to output.
java.io.IOException
public void write(ProcessingInstruction processingInstruction)
throws java.io.IOException
ProcessingInstruction.
processingInstruction - ProcessingInstruction to output.
java.io.IOException
public void write(java.lang.String text)
throws java.io.IOException
Print out a String, Perfoms
the necessary entity escaping and whitespace stripping.
text - is the text to output
java.io.IOException
public void write(Text text)
throws java.io.IOException
Text.
text - Text to output.
java.io.IOException
public void write(Node node)
throws java.io.IOException
Node.
node - Node to output.
java.io.IOException
public void write(java.lang.Object object)
throws java.io.IOException
object - is the object to output.
java.io.IOException
public void writeOpen(Element element)
throws java.io.IOException
Writes the opening tag of an Element,
including its Attributes
but without its content.
element - Element to output.
java.io.IOException
public void writeClose(Element element)
throws java.io.IOException
Writes the closing tag of an Element
element - Element to output.
java.io.IOException
public void parse(InputSource source)
throws java.io.IOException,
SAXException
XMLFilterImpl
parse in interface XMLReaderparse in class XMLFilterImplsource - The input source for the document entity.
SAXException - Any SAX exception, possibly
wrapping another exception.
java.io.IOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.
public void setProperty(java.lang.String name,
java.lang.Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
XMLFilterImplThis will always fail if the parent is null.
setProperty in interface XMLReadersetProperty in class XMLFilterImplname - The property name.value - The requested property value.
SAXNotSupportedException - When the
parent recognizes the property name but
cannot set the requested value.
SAXNotRecognizedException - If the property
value can't be assigned or retrieved from the parent.
public java.lang.Object getProperty(java.lang.String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
XMLFilterImpl
getProperty in interface XMLReadergetProperty in class XMLFilterImplname - The property name.
SAXNotSupportedException - When the
parent recognizes the property name but
cannot determine its value at this time.
SAXNotRecognizedException - If the property
value can't be assigned or retrieved from the parent.public void setLexicalHandler(LexicalHandler handler)
public LexicalHandler getLexicalHandler()
public void setDocumentLocator(Locator locator)
XMLFilterImpl
setDocumentLocator in interface ContentHandlersetDocumentLocator in class XMLFilterImpllocator - The document locator.
public void startDocument()
throws SAXException
XMLFilterImpl
startDocument in interface ContentHandlerstartDocument in class XMLFilterImplSAXException - The client may throw
an exception during processing.
public void endDocument()
throws SAXException
XMLFilterImpl
endDocument in interface ContentHandlerendDocument in class XMLFilterImplSAXException - The client may throw
an exception during processing.
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws SAXException
XMLFilterImpl
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class XMLFilterImplprefix - The Namespace prefix.uri - The Namespace URI.
SAXException - The client may throw
an exception during processing.
public void endPrefixMapping(java.lang.String prefix)
throws SAXException
XMLFilterImpl
endPrefixMapping in interface ContentHandlerendPrefixMapping in class XMLFilterImplprefix - The Namespace prefix.
SAXException - The client may throw
an exception during processing.
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attributes)
throws SAXException
XMLFilterImpl
startElement in interface ContentHandlerstartElement in class XMLFilterImplnamespaceURI - The element's Namespace URI, or the empty string.localName - The element's local name, or the empty string.qName - The element's qualified (prefixed) name, or the empty
string.attributes - The element's attributes.
SAXException - The client may throw
an exception during processing.
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws SAXException
XMLFilterImpl
endElement in interface ContentHandlerendElement in class XMLFilterImplnamespaceURI - The element's Namespace URI, or the empty string.localName - The element's local name, or the empty string.qName - The element's qualified (prefixed) name, or the empty
string.
SAXException - The client may throw
an exception during processing.
public void characters(char[] ch,
int start,
int length)
throws SAXException
XMLFilterImpl
characters in interface ContentHandlercharacters in class XMLFilterImplch - An array of characters.start - The starting position in the array.length - The number of characters to use from the array.
SAXException - The client may throw
an exception during processing.
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
XMLFilterImpl
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class XMLFilterImplch - An array of characters.start - The starting position in the array.length - The number of characters to use from the array.
SAXException - The client may throw
an exception during processing.
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws SAXException
XMLFilterImpl
processingInstruction in interface ContentHandlerprocessingInstruction in class XMLFilterImpltarget - The processing instruction target.data - The text following the target.
SAXException - The client may throw
an exception during processing.
public void notationDecl(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
throws SAXException
XMLFilterImpl
notationDecl in interface DTDHandlernotationDecl in class XMLFilterImplname - The notation name.publicID - The notation's public identifier, or null.systemID - The notation's system identifier, or null.
SAXException - The client may throw
an exception during processing.
public void unparsedEntityDecl(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID,
java.lang.String notationName)
throws SAXException
XMLFilterImpl
unparsedEntityDecl in interface DTDHandlerunparsedEntityDecl in class XMLFilterImplname - The entity name.publicID - The entity's public identifier, or null.systemID - The entity's system identifier, or null.notationName - The name of the associated notation.
SAXException - The client may throw
an exception during processing.
public void startDTD(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
throws SAXException
LexicalHandlerThis method is intended to report the beginning of the DOCTYPE declaration; if the document has no DOCTYPE declaration, this method will not be invoked.
All declarations reported through
DTDHandler or
DeclHandler events must appear
between the startDTD and endDTD events.
Declarations are assumed to belong to the internal DTD subset
unless they appear between startEntity
and endEntity events. Comments and
processing instructions from the DTD should also be reported
between the startDTD and endDTD events, in their original
order of (logical) occurrence; they are not required to
appear in their correct locations relative to DTDHandler
or DeclHandler events, however.
Note that the start/endDTD events will appear within
the start/endDocument events from ContentHandler and
before the first
startElement
event.
startDTD in interface LexicalHandlername - The document type name.publicID - The declared public identifier for the
external DTD subset, or null if none was declared.systemID - The declared system identifier for the
external DTD subset, or null if none was declared.
(Note that this is not resolved against the document
base URI.)
SAXException - The application may raise an
exception.LexicalHandler.endDTD(),
LexicalHandler.startEntity(java.lang.String)
public void endDTD()
throws SAXException
LexicalHandlerThis method is intended to report the end of the DOCTYPE declaration; if the document has no DOCTYPE declaration, this method will not be invoked.
endDTD in interface LexicalHandlerSAXException - The application may raise an exception.LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void startCDATA()
throws SAXException
LexicalHandlerThe contents of the CDATA section will be reported through
the regular characters event; this event is intended only to report
the boundary.
startCDATA in interface LexicalHandlerSAXException - The application may raise an exception.LexicalHandler.endCDATA()
public void endCDATA()
throws SAXException
LexicalHandler
endCDATA in interface LexicalHandlerSAXException - The application may raise an exception.LexicalHandler.startCDATA()
public void startEntity(java.lang.String name)
throws SAXException
LexicalHandlerThe reporting of parameter entities (including
the external DTD subset) is optional, and SAX2 drivers that
report LexicalHandler events may not implement it; you can use the
http://xml.org/sax/features/lexical-handler/parameter-entities
feature to query or control the reporting of parameter entities.
General entities are reported with their regular names, parameter entities have '%' prepended to their names, and the external DTD subset has the pseudo-entity name "[dtd]".
When a SAX2 driver is providing these events, all other
events must be properly nested within start/end entity
events. There is no additional requirement that events from
DeclHandler or
DTDHandler be properly ordered.
Note that skipped entities will be reported through the
skippedEntity
event, which is part of the ContentHandler interface.
Because of the streaming event model that SAX uses, some entity boundaries cannot be reported under any circumstances:
These will be silently expanded, with no indication of where the original entity boundaries were.
Note also that the boundaries of character references (which are not really entities anyway) are not reported.
All start/endEntity events must be properly nested.
startEntity in interface LexicalHandlername - The name of the entity. If it is a parameter
entity, the name will begin with '%', and if it is the
external DTD subset, it will be "[dtd]".
SAXException - The application may raise an exception.LexicalHandler.endEntity(java.lang.String),
DeclHandler.internalEntityDecl(java.lang.String, java.lang.String),
DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
public void endEntity(java.lang.String name)
throws SAXException
LexicalHandler
endEntity in interface LexicalHandlername - The name of the entity that is ending.
SAXException - The application may raise an exception.LexicalHandler.startEntity(java.lang.String)
public void comment(char[] ch,
int start,
int length)
throws SAXException
LexicalHandlerThis callback will be used for comments inside or outside the document element, including comments in the external DTD subset (if read). Comments in the DTD must be properly nested inside start/endDTD and start/endEntity events (if used).
comment in interface LexicalHandlerch - An array holding the characters in the comment.start - The starting position in the array.length - The number of characters to use from the array.
SAXException - The application may raise an exception.
protected void writeElement(Element element)
throws java.io.IOException
java.io.IOExceptionprotected final boolean isElementSpacePreserved(Element element)
protected void writeElementContent(Element element)
throws java.io.IOException
java.io.IOException
protected void writeCDATA(java.lang.String text)
throws java.io.IOException
java.io.IOException
protected void writeDocType(DocumentType docType)
throws java.io.IOException
java.io.IOException
protected void writeNamespace(Namespace namespace)
throws java.io.IOException
java.io.IOException
protected void writeNamespaces()
throws java.io.IOException
java.io.IOException
protected void writeNamespace(java.lang.String prefix,
java.lang.String uri)
throws java.io.IOException
java.io.IOException
protected void writeProcessingInstruction(ProcessingInstruction processingInstruction)
throws java.io.IOException
java.io.IOException
protected void writeString(java.lang.String text)
throws java.io.IOException
java.io.IOException
protected void writeNodeText(Node node)
throws java.io.IOException
java.io.IOException
protected void writeNode(Node node)
throws java.io.IOException
java.io.IOExceptionprotected void installLexicalHandler()
protected void writeDocType(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
throws java.io.IOException
java.io.IOException
protected void writeEntity(Entity entity)
throws java.io.IOException
java.io.IOException
protected void writeEntityRef(java.lang.String name)
throws java.io.IOException
java.io.IOException
protected void writeComment(java.lang.String text)
throws java.io.IOException
java.io.IOException
protected void writeAttributes(Element element)
throws java.io.IOException
java.io.IOException
protected void writeAttribute(Attribute attribute)
throws java.io.IOException
java.io.IOException
protected void writeAttributes(Attributes attributes)
throws java.io.IOException
java.io.IOException
protected void writeAttribute(Attributes attributes,
int index)
throws java.io.IOException
java.io.IOException
protected void indent()
throws java.io.IOException
java.io.IOException
protected void writePrintln()
throws java.io.IOException
This will print a new line only if the newlines flag was set to true
java.io.IOException
protected java.io.Writer createWriter(java.io.OutputStream outStream,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected void writeDeclaration()
throws java.io.IOException
This will write the declaration to the given Writer. Assumes XML version 1.0 since we don't directly know.
java.io.IOException
protected void writeClose(java.lang.String qualifiedName)
throws java.io.IOException
java.io.IOException
protected void writeEmptyElementClose(java.lang.String qualifiedName)
throws java.io.IOException
java.io.IOExceptionprotected boolean isExpandEmptyElements()
protected java.lang.String escapeElementEntities(java.lang.String text)
protected void writeEscapeAttributeEntities(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String escapeAttributeEntities(java.lang.String text)
protected boolean shouldEncodeChar(char c)
protected int defaultMaximumAllowedCharacter()
protected boolean isNamespaceDeclaration(Namespace ns)
protected void handleException(java.io.IOException e)
throws SAXException
SAXExceptionprotected OutputFormat getOutputFormat()
public boolean resolveEntityRefs()
public void setResolveEntityRefs(boolean resolve)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||