public abstract class TypedStreamWriter extends BaseStreamWriter
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.stax2.ri.typed.ValueEncoderFactory |
mValueEncoderFactory
When outputting using Typed Access API, we will need
encoders.
|
ATTR_MIN_ARRAYCOPY, CHAR_SPACE, DEFAULT_COPYBUFFER_LEN, mAnyOutput, mCfgAutomaticEmptyElems, mCfgCDataAsText, mCfgCopyDefaultAttrs, mCheckAttrs, mCheckStructure, mConfig, mCopyBuffer, mDtdRootElem, mEmptyElement, mEncoding, MIN_ARRAYCOPY, mReturnNullForDefaultNamespace, mStartElementOpen, mState, mValidator, mVldContent, mVldProbHandler, mWriter, mXml11, STATE_EPILOG, STATE_PROLOG, STATE_TREE
CFG_ADD_SPACE_AFTER_EMPTY_ELEM, CFG_AUTO_CLOSE_OUTPUT, 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_USE_DOUBLE_QUOTES_IN_XML_DECL, CFG_VALIDATE_ATTR, CFG_VALIDATE_CONTENT, CFG_VALIDATE_NAMES, CFG_VALIDATE_STRUCTURE
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Modifier | Constructor and Description |
---|---|
protected |
TypedStreamWriter(XmlWriter xw,
String enc,
WriterConfig cfg) |
Modifier and Type | Method and Description |
---|---|
protected org.codehaus.stax2.ri.typed.ValueEncoderFactory |
valueEncoderFactory() |
void |
writeBinary(org.codehaus.stax2.typed.Base64Variant v,
byte[] value,
int from,
int length) |
void |
writeBinary(byte[] value,
int from,
int length) |
void |
writeBinaryAttribute(org.codehaus.stax2.typed.Base64Variant v,
String prefix,
String nsURI,
String localName,
byte[] value) |
void |
writeBinaryAttribute(String prefix,
String nsURI,
String localName,
byte[] value) |
void |
writeBoolean(boolean value) |
void |
writeBooleanAttribute(String prefix,
String nsURI,
String localName,
boolean value) |
void |
writeDecimal(BigDecimal value) |
void |
writeDecimalAttribute(String prefix,
String nsURI,
String localName,
BigDecimal value) |
void |
writeDouble(double value) |
void |
writeDoubleArray(double[] value,
int from,
int length) |
void |
writeDoubleArrayAttribute(String prefix,
String nsURI,
String localName,
double[] value) |
void |
writeDoubleAttribute(String prefix,
String nsURI,
String localName,
double value) |
void |
writeFloat(float value) |
void |
writeFloatArray(float[] value,
int from,
int length) |
void |
writeFloatArrayAttribute(String prefix,
String nsURI,
String localName,
float[] value) |
void |
writeFloatAttribute(String prefix,
String nsURI,
String localName,
float value) |
void |
writeInt(int value) |
void |
writeIntArray(int[] value,
int from,
int length) |
void |
writeIntArrayAttribute(String prefix,
String nsURI,
String localName,
int[] value) |
void |
writeIntAttribute(String prefix,
String nsURI,
String localName,
int value) |
void |
writeInteger(BigInteger value) |
void |
writeIntegerAttribute(String prefix,
String nsURI,
String localName,
BigInteger value) |
void |
writeLong(long value) |
void |
writeLongArray(long[] value,
int from,
int length) |
void |
writeLongArrayAttribute(String prefix,
String nsURI,
String localName,
long[] value) |
void |
writeLongAttribute(String prefix,
String nsURI,
String localName,
long value) |
void |
writeQName(QName name) |
void |
writeQNameAttribute(String prefix,
String nsURI,
String localName,
QName name) |
protected abstract void |
writeTypedAttribute(String prefix,
String nsURI,
String localName,
org.codehaus.stax2.ri.typed.AsciiValueEncoder enc)
Method that will write attribute with value that is known not to
require additional escaping.
|
protected void |
writeTypedElement(org.codehaus.stax2.ri.typed.AsciiValueEncoder enc) |
addDefaultAttribute, close, closeCompletely, closeStartElement, copyEventFromReader, copyStartElement, doReportProblem, doReportProblem, doWriteStartDocument, findAttributeIndex, flush, getAttributeCount, getAttributeLocalName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getBaseUri, getCopyBuffer, getCopyBuffer, getCurrentElementName, getEncoding, getLocation, getNamespaceContext, getNamespaceURI, getPrefix, getProperty, getTopElementDesc, getValidationLocation, getXmlVersion, inPrologOrEpilog, isNotationDeclared, isPropertySupported, isUnparsedEntityDeclared, isValidating, reportIllegalArg, reportIllegalMethod, reportInvalidContent, reportNwfAttr, reportNwfAttr, reportNwfContent, reportNwfContent, reportNwfStructure, reportNwfStructure, reportProblem, reportValidationProblem, reportValidationProblem, reportValidationProblem, reportValidationProblem, reportValidationProblem, reportValidationProblem, setDefaultNamespace, setNamespaceContext, setPrefix, setProperty, setValidationProblemHandler, stopValidatingAgainst, stopValidatingAgainst, throwFromIOE, throwOutputError, throwOutputError, toString, validateAgainst, validateQNamePrefix, verifyRootElement, verifyWriteCData, verifyWriteDTD, wrapAsRawWriter, wrapAsTextWriter, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCData, writeCharacters, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeDTD, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEndElement, writeEntityRef, writeFullEndElement, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeRaw, writeRaw, writeRaw, writeSpace, writeSpace, writeStartDocument, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement, writeStartElement
protected org.codehaus.stax2.ri.typed.ValueEncoderFactory mValueEncoderFactory
protected TypedStreamWriter(XmlWriter xw, String enc, WriterConfig cfg)
protected final org.codehaus.stax2.ri.typed.ValueEncoderFactory valueEncoderFactory()
public void writeBoolean(boolean value) throws XMLStreamException
XMLStreamException
public void writeInt(int value) throws XMLStreamException
XMLStreamException
public void writeLong(long value) throws XMLStreamException
XMLStreamException
public void writeFloat(float value) throws XMLStreamException
XMLStreamException
public void writeDouble(double value) throws XMLStreamException
XMLStreamException
public void writeInteger(BigInteger value) throws XMLStreamException
XMLStreamException
public void writeDecimal(BigDecimal value) throws XMLStreamException
XMLStreamException
public void writeQName(QName name) throws XMLStreamException
XMLStreamException
public final void writeIntArray(int[] value, int from, int length) throws XMLStreamException
XMLStreamException
public void writeLongArray(long[] value, int from, int length) throws XMLStreamException
XMLStreamException
public void writeFloatArray(float[] value, int from, int length) throws XMLStreamException
XMLStreamException
public void writeDoubleArray(double[] value, int from, int length) throws XMLStreamException
XMLStreamException
public void writeBinary(byte[] value, int from, int length) throws XMLStreamException
XMLStreamException
public void writeBinary(org.codehaus.stax2.typed.Base64Variant v, byte[] value, int from, int length) throws XMLStreamException
XMLStreamException
protected final void writeTypedElement(org.codehaus.stax2.ri.typed.AsciiValueEncoder enc) throws XMLStreamException
XMLStreamException
public void writeBooleanAttribute(String prefix, String nsURI, String localName, boolean value) throws XMLStreamException
XMLStreamException
public void writeIntAttribute(String prefix, String nsURI, String localName, int value) throws XMLStreamException
XMLStreamException
public void writeLongAttribute(String prefix, String nsURI, String localName, long value) throws XMLStreamException
XMLStreamException
public void writeFloatAttribute(String prefix, String nsURI, String localName, float value) throws XMLStreamException
XMLStreamException
public void writeDoubleAttribute(String prefix, String nsURI, String localName, double value) throws XMLStreamException
XMLStreamException
public void writeIntegerAttribute(String prefix, String nsURI, String localName, BigInteger value) throws XMLStreamException
XMLStreamException
public void writeDecimalAttribute(String prefix, String nsURI, String localName, BigDecimal value) throws XMLStreamException
XMLStreamException
public void writeQNameAttribute(String prefix, String nsURI, String localName, QName name) throws XMLStreamException
XMLStreamException
public void writeIntArrayAttribute(String prefix, String nsURI, String localName, int[] value) throws XMLStreamException
XMLStreamException
public void writeLongArrayAttribute(String prefix, String nsURI, String localName, long[] value) throws XMLStreamException
XMLStreamException
public void writeFloatArrayAttribute(String prefix, String nsURI, String localName, float[] value) throws XMLStreamException
XMLStreamException
public void writeDoubleArrayAttribute(String prefix, String nsURI, String localName, double[] value) throws XMLStreamException
XMLStreamException
public void writeBinaryAttribute(String prefix, String nsURI, String localName, byte[] value) throws XMLStreamException
XMLStreamException
public void writeBinaryAttribute(org.codehaus.stax2.typed.Base64Variant v, String prefix, String nsURI, String localName, byte[] value) throws XMLStreamException
XMLStreamException
protected abstract void writeTypedAttribute(String prefix, String nsURI, String localName, org.codehaus.stax2.ri.typed.AsciiValueEncoder enc) throws XMLStreamException
XMLStreamException
Copyright © 2018 FasterXML. All rights reserved.