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(javax.xml.stream.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(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the information item with caching.
|
void |
serialize(javax.xml.stream.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(javax.xml.stream.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()
OMSerializable
getOMFactory
in interface OMSerializable
public boolean isComplete()
OMSerializable
isComplete
in interface OMSerializable
public void build() throws OMException
build
in interface OMSerializable
OMException
public void close(boolean build)
OMSerializable
close
in interface OMSerializable
build
- if true, the object is built first before closing the builder/parserpublic abstract void setComplete(boolean state)
public abstract void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache) throws javax.xml.stream.XMLStreamException
writer
- javax.xml.stream.XMLStreamException
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
OMSerializable
OMSerializable.serialize(XMLStreamWriter, boolean)
with cache
set to
true
.serialize
in interface OMSerializable
javax.xml.stream.XMLStreamException
public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
OMSerializable
OMSerializable.serialize(XMLStreamWriter, boolean)
with cache
set to
false
.serializeAndConsume
in interface OMSerializable
javax.xml.stream.XMLStreamException
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter, boolean cache) throws javax.xml.stream.XMLStreamException
OMSerializable
serialize
in interface OMSerializable
cache
- indicates if caching should be enabledjavax.xml.stream.XMLStreamException
public void serialize(OutputStream output) throws javax.xml.stream.XMLStreamException
public void serialize(Writer writer) throws javax.xml.stream.XMLStreamException
public void serializeAndConsume(OutputStream output) throws javax.xml.stream.XMLStreamException
public void serializeAndConsume(Writer writer) throws javax.xml.stream.XMLStreamException
public void serialize(OutputStream output, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
public void serialize(Writer writer2, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
public void serializeAndConsume(OutputStream output, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
public void serializeAndConsume(Writer writer2, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.