|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.data.Serializer
org.basex.data.SAXSerializer
public final class SAXSerializer
This class allows to output XML results via SAX.
| Field Summary |
|---|
| Fields inherited from class org.basex.data.Serializer |
|---|
dn, ns, tags |
| Constructor Summary | |
|---|---|
SAXSerializer(Result res)
Constructor. |
|
| Method Summary | |
|---|---|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
void |
close(byte[] t)
Closes an element. |
void |
close(int s)
Finishes the serializer. |
void |
closeResult()
Closes a result. |
void |
comment(byte[] t)
Serializes a comment. |
void |
empty()
Finishes an empty element. |
void |
finish()
Finishes an element. |
org.xml.sax.ContentHandler |
getContentHandler()
|
org.xml.sax.DTDHandler |
getDTDHandler()
|
org.xml.sax.EntityResolver |
getEntityResolver()
|
org.xml.sax.ErrorHandler |
getErrorHandler()
|
boolean |
getFeature(java.lang.String name)
|
java.lang.Object |
getProperty(java.lang.String name)
|
void |
item(byte[] b)
Serializes an item. |
void |
open(int s)
Initializes the serializer. |
void |
openResult()
Starts a result. |
void |
parse(org.xml.sax.InputSource input)
|
void |
parse(java.lang.String id)
|
void |
pi(byte[] n,
byte[] v)
Serializes a processing instruction. |
void |
setContentHandler(org.xml.sax.ContentHandler c)
|
void |
setDTDHandler(org.xml.sax.DTDHandler h)
|
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler h)
|
void |
setFeature(java.lang.String name,
boolean value)
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler l)
Sets the lexical handler for reacting on comments. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
text(byte[] b)
Serializes a text. |
| Methods inherited from class org.basex.data.Serializer |
|---|
closeElement, emptyElement, emptyElement, emptyElement, finished, finishElement, namespace, node, openElement, openElement, pi, startElement, startElement |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXSerializer(Result res)
res - result| Method Detail |
|---|
public org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderpublic boolean getFeature(java.lang.String name)
getFeature in interface org.xml.sax.XMLReaderpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface org.xml.sax.XMLReader
public void parse(org.xml.sax.InputSource input)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXException
public void parse(java.lang.String id)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXExceptionpublic void setContentHandler(org.xml.sax.ContentHandler c)
setContentHandler in interface org.xml.sax.XMLReaderpublic void setLexicalHandler(org.xml.sax.ext.LexicalHandler l)
l - handlerpublic void setDTDHandler(org.xml.sax.DTDHandler h)
setDTDHandler in interface org.xml.sax.XMLReaderpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderpublic void setErrorHandler(org.xml.sax.ErrorHandler h)
setErrorHandler in interface org.xml.sax.XMLReader
public void setFeature(java.lang.String name,
boolean value)
setFeature in interface org.xml.sax.XMLReader
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface org.xml.sax.XMLReader
public void open(int s)
throws java.io.IOException
Serializer
open in class Serializers - number of results
java.io.IOException - exception
public void close(int s)
throws java.io.IOException
Serializer
close in class Serializers - number of results
java.io.IOException - exception
public void openResult()
throws java.io.IOException
Serializer
openResult in class Serializerjava.io.IOException - exception
public void closeResult()
throws java.io.IOException
Serializer
closeResult in class Serializerjava.io.IOException - exception
public void attribute(byte[] n,
byte[] v)
Serializer
attribute in class Serializern - namev - value
public void empty()
throws java.io.IOException
Serializer
java.io.IOException - exception
public void finish()
throws java.io.IOException
Serializer
java.io.IOException - exception
public void close(byte[] t)
throws java.io.IOException
Serializer
t - tag
java.io.IOException - exception
public void text(byte[] b)
throws java.io.IOException
Serializer
text in class Serializerb - text bytes
java.io.IOException - exception
public void comment(byte[] t)
throws java.io.IOException
Serializer
comment in class Serializert - comment
java.io.IOException - exception
public void pi(byte[] n,
byte[] v)
throws java.io.IOException
Serializer
pi in class Serializern - namev - value
java.io.IOException - exception
public void item(byte[] b)
throws java.io.IOException
Serializer
item in class Serializerb - text bytes
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||