nu.staldal.xodus
Class TextSerializer
java.lang.Object
nu.staldal.xodus.Serializer
nu.staldal.xodus.TextSerializer
- All Implemented Interfaces:
- java.lang.Appendable, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler
public class TextSerializer
- extends Serializer
Method Summary |
java.lang.Appendable |
append(char c)
|
java.lang.Appendable |
append(java.lang.CharSequence cs)
|
java.lang.Appendable |
append(java.lang.CharSequence cs,
int start,
int end)
|
void |
attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String mode,
java.lang.String value)
|
void |
characters(char[] ch,
int start,
int length)
|
void |
characters(java.lang.CharSequence cs)
Alternative method for convenience and efficiency
(no need to copy a String into a char[]). |
void |
comment(char[] ch,
int start,
int length)
|
void |
comment(java.lang.CharSequence cs)
Alternative method for convenience and efficiency
(no need to copy a String into a char[]). |
void |
elementDecl(java.lang.String name,
java.lang.String model)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
void |
endEntity(java.lang.String name)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
ignorableWhitespace(java.lang.CharSequence cs)
Alternative method for convenience and efficiency
(no need to copy a String into a char[]). |
void |
internalEntityDecl(java.lang.String name,
java.lang.String value)
|
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Does nothing. |
void |
skippedEntity(java.lang.String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Does nothing.
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
characters
public void characters(java.lang.CharSequence cs)
throws org.xml.sax.SAXException
- Description copied from class:
Serializer
- Alternative method for convenience and efficiency
(no need to copy a String into a char[]).
- Specified by:
characters
in class Serializer
- Parameters:
cs
- a CharSequence
,
e.g. a String
.
- Throws:
org.xml.sax.SAXException
- declared to throw SAXException to be consistent
with ContentHandler
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
ignorableWhitespace
public void ignorableWhitespace(java.lang.CharSequence cs)
throws org.xml.sax.SAXException
- Description copied from class:
Serializer
- Alternative method for convenience and efficiency
(no need to copy a String into a char[]).
- Specified by:
ignorableWhitespace
in class Serializer
- Parameters:
cs
- a CharSequence
,
e.g. a String
.
- Throws:
org.xml.sax.SAXException
- declared to throw SAXException to be consistent
with ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
skippedEntity
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startDTD
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endDTD
public void endDTD()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startEntity
public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endEntity
public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startCDATA
public void startCDATA()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endCDATA
public void endCDATA()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
comment
public void comment(java.lang.CharSequence cs)
throws org.xml.sax.SAXException
- Description copied from class:
Serializer
- Alternative method for convenience and efficiency
(no need to copy a String into a char[]).
- Specified by:
comment
in class Serializer
- Parameters:
cs
- a CharSequence
,
e.g. a String
.
- Throws:
org.xml.sax.SAXException
- declared to throw SAXException to be consistent
with ContentHandler
comment
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
notationDecl
public void notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
unparsedEntityDecl
public void unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
elementDecl
public void elementDecl(java.lang.String name,
java.lang.String model)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
attributeDecl
public void attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String mode,
java.lang.String value)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
internalEntityDecl
public void internalEntityDecl(java.lang.String name,
java.lang.String value)
throws org.xml.sax.SAXException
- 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
- Throws:
org.xml.sax.SAXException
append
public java.lang.Appendable append(java.lang.CharSequence cs)
throws java.io.IOException
- Throws:
java.io.IOException
append
public java.lang.Appendable append(char c)
throws java.io.IOException
- Throws:
java.io.IOException
append
public java.lang.Appendable append(java.lang.CharSequence cs,
int start,
int end)
throws java.io.IOException
- Throws:
java.io.IOException