|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.richfaces.json.JSContentHandler
public class JSContentHandler
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ENCODING
|
protected char[] |
indentBuffer
|
protected int |
level
The DocType instance representing the document. |
protected java.io.Writer |
outputWriter
|
Constructor Summary | |
---|---|
JSContentHandler()
|
|
JSContentHandler(java.io.Writer outputWriter)
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
close()
|
protected boolean |
closeElement(boolean end_element)
Write the end part of a start element (if necessary). |
void |
comment(char[] ch,
int start,
int length)
|
protected void |
encode(char[] data)
Encode and write an array of characters. |
protected void |
encode(char[] data,
int start,
int length)
Encode and write a specific part of an array of characters. |
protected void |
encode(java.lang.String data)
Encode and write a String |
protected void |
encodeAttributeValue(org.xml.sax.Attributes attributes,
int idx)
|
protected void |
encodeText(char[] chars,
int start,
int length)
|
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)
|
int |
getColumnNumber()
Return the column number where the current document event ends. |
int |
getLineNumber()
Return the line number where the current document event ends. |
protected java.lang.String |
getLocation()
Return a String describing the current location. |
java.lang.String |
getPublicId()
Return the public identifier for the current document event. |
java.lang.String |
getSystemId()
Return the system identifier for the current document event. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
protected boolean |
isBeforeDocumentStart()
|
protected boolean |
isProcessingCdata()
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
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 attributes)
|
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
protected void |
writeIndent(int indent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.Writer outputWriter
protected int level
DocType
instance representing the document.
protected char[] indentBuffer
public static final java.lang.String DEFAULT_ENCODING
Constructor Detail |
---|
public JSContentHandler()
public JSContentHandler(java.io.Writer outputWriter)
outputWriter
- Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
protected boolean closeElement(boolean end_element) throws org.xml.sax.SAXException
end_element
- Whether this method was called because an element is being
closed or not.
</element>
is required.
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public final void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public java.lang.String getPublicId()
String
containing the public identifier,
or null if none is available.public java.lang.String getSystemId()
String
containing the system identifier,
or null if none is available.public int getLineNumber()
public int getColumnNumber()
protected java.lang.String getLocation()
String
describing the current location.
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
protected void encodeAttributeValue(org.xml.sax.Attributes attributes, int idx) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
protected void encodeText(char[] chars, int start, int length) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
protected void writeIndent(int indent) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void encode(java.lang.String data) throws org.xml.sax.SAXException
String
org.xml.sax.SAXException
protected void encode(char[] data) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void encode(char[] data, int start, int length) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected boolean isProcessingCdata()
protected boolean isBeforeDocumentStart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |