public abstract class OMSerializableImpl extends Object implements OMSerializable
| Modifier and Type | Field and Description |
|---|---|
OMXMLParserWrapper |
builder
Field parserWrapper
|
protected boolean |
done
Field done
|
protected OMFactory |
factory |
| Constructor and Description |
|---|
OMSerializableImpl(OMFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Parses this node and builds the object structure in memory.
|
void |
close(boolean build)
If a builder and parser is associated with the node, it is closed.
|
OMFactory |
getOMFactory()
Returns the OMFactory that created this object
|
abstract void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not.
|
void |
serialize(OutputStream output) |
void |
serialize(OutputStream output,
OMOutputFormat format) |
void |
serialize(Writer writer) |
void |
serialize(Writer writer2,
OMOutputFormat format) |
void |
serialize(XMLStreamWriter xmlWriter)
Serializes the information item with caching.
|
void |
serialize(XMLStreamWriter xmlWriter,
boolean cache)
Serializes the information item.
|
void |
serializeAndConsume(OutputStream output) |
void |
serializeAndConsume(OutputStream output,
OMOutputFormat format) |
void |
serializeAndConsume(Writer writer) |
void |
serializeAndConsume(Writer writer2,
OMOutputFormat format) |
void |
serializeAndConsume(XMLStreamWriter xmlWriter)
Serializes the information item without caching.
|
abstract void |
setComplete(boolean state) |
public OMXMLParserWrapper builder
protected boolean done
protected final OMFactory factory
public OMSerializableImpl(OMFactory factory)
public OMFactory getOMFactory()
OMSerializablegetOMFactory in interface OMSerializablepublic boolean isComplete()
OMSerializableisComplete in interface OMSerializablepublic void build()
throws OMException
build in interface OMSerializableOMExceptionpublic void close(boolean build)
OMSerializableclose in interface OMSerializablebuild - if true, the object is built first before closing the builder/parserpublic abstract void setComplete(boolean state)
public abstract void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
writer - XMLStreamExceptionpublic void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
OMSerializableOMSerializable.serialize(XMLStreamWriter, boolean) with cache set to
true.serialize in interface OMSerializableXMLStreamExceptionpublic void serializeAndConsume(XMLStreamWriter xmlWriter) throws XMLStreamException
OMSerializableOMSerializable.serialize(XMLStreamWriter, boolean) with cache set to
false.serializeAndConsume in interface OMSerializableXMLStreamExceptionpublic void serialize(XMLStreamWriter xmlWriter, boolean cache) throws XMLStreamException
OMSerializableserialize in interface OMSerializablecache - indicates if caching should be enabledXMLStreamExceptionpublic void serialize(OutputStream output) throws XMLStreamException
XMLStreamExceptionpublic void serialize(Writer writer) throws XMLStreamException
XMLStreamExceptionpublic void serializeAndConsume(OutputStream output) throws XMLStreamException
XMLStreamExceptionpublic void serializeAndConsume(Writer writer) throws XMLStreamException
XMLStreamExceptionpublic void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
XMLStreamExceptionpublic void serialize(Writer writer2, OMOutputFormat format) throws XMLStreamException
XMLStreamExceptionpublic void serializeAndConsume(OutputStream output, OMOutputFormat format) throws XMLStreamException
XMLStreamExceptionpublic void serializeAndConsume(Writer writer2, OMOutputFormat format) throws XMLStreamException
XMLStreamExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.