public class MinimalOutputFactory extends java.lang.Object implements OutputConfigFlags
XMLOutputFactory
API: basically
just the cursor-based iteration, and classes it needs.
Unfortunately, the way StAX 1.0 is defined, this class can NOT be
the base class of the full input factory, without getting references
to most of StAX event classes. It does however have lots of shared
(cut'n pasted code) with WstxOutputFactory
.
Hopefully in future this problem can be resolved.
Modifier and Type | Field and Description |
---|---|
protected WriterConfig |
mConfig |
protected boolean |
mIsMinimal
Flag used to distinguish "real" minimal implementations and
extending non-minimal ones (currently there's such distinction
for input factories, for minimal <= validating <= event-based,
but not for ouput)
|
CFG_AUTOMATIC_EMPTY_ELEMENTS, CFG_AUTOMATIC_END_ELEMENTS, CFG_AUTOMATIC_NS, CFG_COPY_DEFAULT_ATTRS, CFG_ENABLE_NS, CFG_ESCAPE_CR, CFG_FIX_CONTENT, CFG_OUTPUT_CDATA_AS_TEXT, CFG_VALIDATE_ATTR, CFG_VALIDATE_CONTENT, CFG_VALIDATE_NAMES, CFG_VALIDATE_STRUCTURE
Modifier | Constructor and Description |
---|---|
protected |
MinimalOutputFactory(boolean isMinimal) |
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream out) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream out,
java.lang.String enc) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(javax.xml.transform.Result result) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.Writer w) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.Writer w,
java.lang.String enc) |
WriterConfig |
getConfig() |
java.lang.Object |
getProperty(java.lang.String name) |
boolean |
isPropertySupported(java.lang.String name) |
static MinimalOutputFactory |
newMinimalInstance()
Need to add this method, since we have no base class to do it...
|
void |
setProperty(java.lang.String name,
java.lang.Object value) |
protected final boolean mIsMinimal
protected final WriterConfig mConfig
public static MinimalOutputFactory newMinimalInstance()
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out, java.lang.String enc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer w) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.lang.Object getProperty(java.lang.String name)
public boolean isPropertySupported(java.lang.String name)
public void setProperty(java.lang.String name, java.lang.Object value)
public WriterConfig getConfig()