| Modifier and Type | Field and Description |
|---|---|
| private NamespaceDecl | activeNamespaces
Remembers the namespace declarations of the last unclosed start tag,
so that we can fix up dummy prefixes in |
| private Content | current
Currently active writer. |
| private final Map | |
| private final NamespaceSupport | inscopeNamespace
Used to keep track of in-scope namespace bindings declared in ancestors. |
| private int | iota
Used to generate unique namespace prefix. |
| pack-priv static final char | MAGIC
The first char of the dummy prefix. |
| private final XmlSerializer | |
| private int | |
| private final StringBuilder | prefixSeed
Used by |
| private boolean | started
Set to true once we invoke |
| private final ContentVisitor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addDatatypeWriter(DatatypeWriter<Object>
The dw)DatatypeWriter to be added. Must not be null.Defines additional user object |
| pack-priv char | |
| private StringBuilder | Returns: the buffer passed as thebuf parameter.Replaces dummy prefixes in the value to the real ones
by using |
| pack-priv void | |
| private String | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | writeValue(Object obj, NamespaceResolver
use nsResolver, StringBuilder buf)Appends the given object to the end of the given buffer. |
| activeNamespaces | back to summary |
|---|---|
| private NamespaceDecl activeNamespaces Remembers the namespace declarations of the last unclosed start tag,
so that we can fix up dummy prefixes in | |
| current | back to summary |
|---|---|
| private Content current Currently active writer. This points to the last written token. | |
| datatypeWriters | back to summary |
|---|---|
| private final Map<Class<?>, DatatypeWriter<Object>> datatypeWriters | |
| inscopeNamespace | back to summary |
|---|---|
| private final NamespaceSupport inscopeNamespace Used to keep track of in-scope namespace bindings declared in ancestors. | |
| iota | back to summary |
|---|---|
| private int iota Used to generate unique namespace prefix. | |
| MAGIC | back to summary |
|---|---|
| pack-priv static final char MAGIC The first char of the dummy prefix. | |
| out | back to summary |
|---|---|
| private final XmlSerializer out | |
| prefixIota | back to summary |
|---|---|
| private int prefixIota | |
| prefixSeed | back to summary |
|---|---|
| private final StringBuilder prefixSeed Used by | |
| started | back to summary |
|---|---|
| private boolean started Set to true once we invoke This is so that we can defer the writing as much as possible. | |
| visitor | back to summary |
|---|---|
| private final ContentVisitor visitor | |
| Document | back to summary |
|---|---|
| pack-priv Document(XmlSerializer out) | |
| addDatatypeWriter | back to summary |
|---|---|
| public void addDatatypeWriter(DatatypeWriter<Object> dw) Defines additional user object
Applications can add their own
| |
| assignNewId | back to summary |
|---|---|
| pack-priv char assignNewId() | |
| fixPrefix | back to summary |
|---|---|
| private StringBuilder fixPrefix(StringBuilder buf) Replaces dummy prefixes in the value to the real ones
by using
| |
| flush | back to summary |
|---|---|
| pack-priv void flush() | |
| newPrefix | back to summary |
|---|---|
| private String newPrefix() Allocates a new unique prefix. | |
| run | back to summary |
|---|---|
| pack-priv void run() Performs the output as much as possible | |
| setFirstContent | back to summary |
|---|---|
| pack-priv void setFirstContent(Content c) | |
| writeValue | back to summary |
|---|---|
| pack-priv void writeValue(Object obj, NamespaceResolver nsResolver, StringBuilder buf) Appends the given object to the end of the given buffer.
| |