|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
be.ac.vub.cocompose.io.xml.SAXWriter
XML writer for writing any XML document to an OutputStream. Based on the SAX2 DefaultHandler class.
Constructor Summary | |
SAXWriter()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Characters. |
void |
endDocument()
End document. |
void |
endElement(String uri,
String local,
String raw)
End element. |
String |
getCharset()
Gets the encoding character set (e.g. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Ignorable whitespace. |
void |
notationDecl(String name,
String publicId,
String systemId)
DTD declaration. |
void |
processingInstruction(String target,
String data)
Processing instruction. |
void |
setCharset(String charset)
Sets the encoding character set (e.g. |
void |
setOutputStream(OutputStream outputStream)
Sets the output stream for writing. |
void |
startDocument()
Start document. |
void |
startElement(String uri,
String local,
String raw,
Attributes attrs)
Start element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXWriter()
Method Detail |
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
target
- Processing instruction element name.data
- Processing instruction element data.public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String uri, String local, String raw, Attributes attrs)
startElement
in interface ContentHandler
uri
- Ignored.local
- Ignored.raw
- Element name.attrs
- Element attributes.public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
ch
- Characters to print.start
- Starting index of characters.length
- Length of characters.public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
ch
- Characters to print.start
- Starting index of characters.length
- Length of characters.public void endElement(String uri, String local, String raw)
endElement
in interface ContentHandler
uri
- Ignored.local
- Ignored.raw
- Element name.public void endDocument()
endDocument
in interface ContentHandler
public void notationDecl(String name, String publicId, String systemId)
notationDecl
in interface DTDHandler
name
- DTD name.publicId
- DTD public ID.systemId
- DTD system ID.public String getCharset()
getCharset
in interface StreamWriter
public void setCharset(String charset) throws UnsupportedEncodingException
setCharset
in interface StreamWriter
charset
- - the character set.
UnsupportedEncodingException
- - if the character set is not supported.public void setOutputStream(OutputStream outputStream)
setOutputStream
in interface StreamWriter
outputStream
- - the output stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |