|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
XmlWriter
, used if
the destination is byte-based OutputStream
, and
encoding is 7-bit (US) Ascii.PName
instances, given input data to use for construction.PNames
, specifically, instances of (ByteBasedPName
).InputStream
,
or a block source like byte array.XmlWriter
)
is used if the destination is byte-based OutputStream
.PNames
, specifically, instances of
(PNameC
).XmlWriter
, used if
the destination is a character based, like a Writer
.XMLStreamWriter
interface.XMLStreamConstants
,
event codes 0 through 256 (inclusive?) are reserved by the Stax
specs, so we'll use the next available code.
file.toURL()
turns out to be rather slow, as
it tries to figure out if the file is actually a directory.
NamespaceContext
.DOMWriterImpl.findElemPrefix(java.lang.String, com.fasterxml.aalto.dom.DOMOutputElement)
has returned null,
to create and bind a namespace mapping for specified namespace.
DTDInfo
, method can just
return this
.
OutputElementBase.getPrefix(java.lang.String)
, but one that will not accept
the default namespace, only an explicit one.
Location
object to use for
an event to create.
StreamReaderImpl.getText()
, except
that it just uses provided Writer to write all textual content.
XMLInputFactory
.IOException
s; needed when StAX does not expose
underlying I/O exceptions via its methods.XmlWriter
, used if
the destination is byte-based OutputStream
, and
encoding is ISO-8859-1 (aka Latin1)XMLStreamLocation2
, used by stream
readers and writers.String.getChars(char[], int)
can be
drastically faster than String.charAt(int)
!), to be converted
InputStream
implementation that is used to "unwind" some
data previously read from an input stream; so that as long as some of
that data remains, it's returned; but as long as it's read, we'll
just use data from the underlying original stream.mBuckets.length - 1
, when mBuckets.length is
a power of two.
ByteBasedScanner.mQuadBuffer
).
StreamWriterBase
, which
implements basic namespace-aware, non repairing functionality.XMLOutputFactory
.QName
(qualified name), but
only contains information about local name optionally prefixed by
a prefix and colon, without namespace binding information.Reader
.StreamWriterBase
, which
implements the "namespace repairing" mode of operation.XMLStreamException
instances that
we use.XMLStreamReader
implementation.XMLStreamReader
implementations.StringBuilder
, but
that allows for bit more efficient building, using segmented internal
buffers, and direct access to these buffers.TextBuilder.contentsAsString()
, since it's not guaranteed that resulting
String is cached.
XmlWriter
, used if
the destination is byte-based OutputStream
, and
encoding is UTF-8.PName
, in
that it implements an efficient representation of prefixed names,
but one used on output (Writer) side.WNameTable
instances, to be able to
construct WName
instances for element and attribute names.WName
s.StreamWriterBase.writeEndElement()
, but never allows implicit
creation of empty elements.
START_ELEMENT
, number
of attributes the start element has.
AsyncByteScanner._currQuad
StreamWriterBase.writeDTD(java.lang.String)
method.
_attrMap
; generally at least 20%
more than number of attributes (_attrCount
).
START_ELEMENT
or END_ELEMENT
, to indicate if the underlying physical
tag is a so-called empty tag (one ending with "/>")
NamespaceContext
, created for a call
to XmlScanner.getNonTransientNamespaceContext()
, iff this would
still be a valid context.
OutputElementBase._nsMapping
is a shared copy from the parent;
false if a local copy was created (which happens when namespaces
get bound etc).
writeStartElement
and
writeEmptyElement
, and can be used to
add attributes and namespace declarations.
_attrMap
array.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |