|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.xml.PrettySerializingContentHandler
org.crosswire.common.xml.HTMLSerializingContentHandler
public class HTMLSerializingContentHandler
This class provides for the formatted and syntax highlighted
serialization of a SAX stream to a Writer
.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Constructor Summary | |
---|---|
HTMLSerializingContentHandler()
A formatting serializer that does not add whitespace to the document. |
|
HTMLSerializingContentHandler(FormatType theFormat)
A formatting serializer that adds whitespace to the document according to the specified FormatType . |
|
HTMLSerializingContentHandler(FormatType theFormat,
Writer theWriter)
A formatting serializer that adds whitespace to the document according to the specified FormatType . |
Method Summary | |
---|---|
protected String |
decorateAttributeName(String attrName)
|
protected String |
decorateAttributeValue(String attrValue)
|
protected String |
decorateCharacters(String characters)
|
protected String |
decorateIndent(int indentLevel)
|
protected String |
decorateTagName(String tagName)
|
void |
endDocument()
|
protected String |
getEmptyTagEnd()
|
protected String |
getEndTagStart()
|
protected String |
getNewline()
|
protected String |
getPIEnd()
|
protected String |
getPIStart()
|
protected String |
getTagEnd()
|
protected String |
getTagStart()
|
void |
startDocument()
|
Methods inherited from class org.crosswire.common.xml.PrettySerializingContentHandler |
---|
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, toString, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTMLSerializingContentHandler()
public HTMLSerializingContentHandler(FormatType theFormat)
FormatType
. This uses
a StringWriter and the toString method will return its content.
theFormat
- the formatting to usepublic HTMLSerializingContentHandler(FormatType theFormat, Writer theWriter)
FormatType
. As the document
is serialized it is written to the provided Writer
.
theFormat
- the formatting to usetheWriter
- the writer to useMethod Detail |
---|
protected String decorateTagName(String tagName)
decorateTagName
in class PrettySerializingContentHandler
protected String decorateAttributeName(String attrName)
decorateAttributeName
in class PrettySerializingContentHandler
protected String decorateAttributeValue(String attrValue)
decorateAttributeValue
in class PrettySerializingContentHandler
protected String decorateCharacters(String characters)
decorateCharacters
in class PrettySerializingContentHandler
protected String decorateIndent(int indentLevel)
decorateIndent
in class PrettySerializingContentHandler
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class PrettySerializingContentHandler
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class PrettySerializingContentHandler
protected String getEmptyTagEnd()
getEmptyTagEnd
in class PrettySerializingContentHandler
protected String getEndTagStart()
getEndTagStart
in class PrettySerializingContentHandler
protected String getPIEnd()
getPIEnd
in class PrettySerializingContentHandler
protected String getPIStart()
getPIStart
in class PrettySerializingContentHandler
protected String getTagEnd()
getTagEnd
in class PrettySerializingContentHandler
protected String getTagStart()
getTagStart
in class PrettySerializingContentHandler
protected String getNewline()
getNewline
in class PrettySerializingContentHandler
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |