|
||||||||||
| 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 use
public 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 use| Method Detail |
|---|
protected String decorateTagName(String tagName)
decorateTagName in class PrettySerializingContentHandlerprotected String decorateAttributeName(String attrName)
decorateAttributeName in class PrettySerializingContentHandlerprotected String decorateAttributeValue(String attrValue)
decorateAttributeValue in class PrettySerializingContentHandlerprotected String decorateCharacters(String characters)
decorateCharacters in class PrettySerializingContentHandlerprotected String decorateIndent(int indentLevel)
decorateIndent in class PrettySerializingContentHandlerpublic void startDocument()
startDocument in interface ContentHandlerstartDocument in class PrettySerializingContentHandlerpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class PrettySerializingContentHandlerprotected String getEmptyTagEnd()
getEmptyTagEnd in class PrettySerializingContentHandlerprotected String getEndTagStart()
getEndTagStart in class PrettySerializingContentHandlerprotected String getPIEnd()
getPIEnd in class PrettySerializingContentHandlerprotected String getPIStart()
getPIStart in class PrettySerializingContentHandlerprotected String getTagEnd()
getTagEnd in class PrettySerializingContentHandlerprotected String getTagStart()
getTagStart in class PrettySerializingContentHandlerprotected 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 | |||||||||