|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamContentHandler
An implementation of a ContentHandler
that serializes XML into a
stream
Field Summary | |
---|---|
static java.lang.String |
DISABLE_OUTPUT_ESCAPING
Processing instruction to disable output escaping when writing characters using the ContentHandler.processingInstruction(String, String) method. |
static java.lang.String |
ENABLE_OUTPUT_ESCAPING
Processing instruction to enable output escaping when writing characters using the ContentHandler.processingInstruction(String, String) method. |
static java.lang.String |
INDENT
specifies if the handler indents the output |
static java.lang.String |
INDENT_NO
disables indention |
static java.lang.String |
INDENT_YES
enables indention |
static java.lang.String |
OUTPUT_ESCAPING_DATA
Data passed to the ContentHandler.processingInstruction(String, String) to
enable or disable output escaping |
Method Summary | |
---|---|
java.util.Properties |
getOutputProperties()
Returns the current output properties |
java.lang.String |
getOutputProperty(java.lang.String name)
Returns one particular output property |
java.nio.charset.Charset |
setCharset(java.nio.charset.Charset charset)
Assigns the characterset used for the output |
void |
setOutputProperties(java.util.Properties oformat)
Assigns a new set of properties. |
void |
setOutputProperty(java.lang.String name,
java.lang.String value)
Assigns a new property that handles the target serialization |
java.io.OutputStream |
setOutputStream(java.io.OutputStream out)
Sets the OutputStream to serialize to |
java.io.Writer |
setWriter(java.io.Writer out)
Sets the Writer to serialize to |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface java.io.Flushable |
---|
flush |
Field Detail |
---|
static final java.lang.String DISABLE_OUTPUT_ESCAPING
ContentHandler.processingInstruction(String, String)
method.
ContentHandler.processingInstruction(String, String)
,
OUTPUT_ESCAPING_DATA
,
Constant Field Valuesstatic final java.lang.String ENABLE_OUTPUT_ESCAPING
ContentHandler.processingInstruction(String, String)
method.
ContentHandler.processingInstruction(String, String)
,
OUTPUT_ESCAPING_DATA
,
Constant Field Valuesstatic final java.lang.String OUTPUT_ESCAPING_DATA
ContentHandler.processingInstruction(String, String)
to
enable or disable output escaping
static final java.lang.String INDENT
setOutputProperty(String, String)
,
Constant Field Valuesstatic final java.lang.String INDENT_YES
INDENT
,
setOutputProperty(String, String)
,
Constant Field Valuesstatic final java.lang.String INDENT_NO
INDENT
,
setOutputProperty(String, String)
,
Constant Field ValuesMethod Detail |
---|
java.util.Properties getOutputProperties()
Transformer#getOutputProperties()}
java.lang.String getOutputProperty(java.lang.String name) throws java.lang.IllegalArgumentException
name
- name of the property
null
java.lang.IllegalArgumentException
Transformer#getOutputProperty(String)}
java.nio.charset.Charset setCharset(java.nio.charset.Charset charset)
setCharset
in interface CharsetHandler
charset
- the new characterset
void setOutputProperties(java.util.Properties oformat) throws java.lang.IllegalArgumentException
oformat
- the properties
java.lang.IllegalArgumentException
Transformer#setOutputProperties(Properties)}
void setOutputProperty(java.lang.String name, java.lang.String value) throws java.lang.IllegalArgumentException
name
- name of the propertyvalue
- value of the property
java.lang.IllegalArgumentException
Transformer#setOutputProperty(String, String)}
java.io.OutputStream setOutputStream(java.io.OutputStream out)
OutputStream
to serialize to
out
- target stream
java.io.Writer setWriter(java.io.Writer out)
Writer
to serialize to
out
- target writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |