public interface ModelWriter extends Flushable, AutoCloseable
ModelStreamFactory
Modifier and Type | Method and Description |
---|---|
void |
close()
Free resources associated with this writer.
|
void |
flush()
Writes all cached data.
|
ModelWriter |
writeBigDecimal(BigDecimal data)
Writes DMR
number . |
ModelWriter |
writeBigInteger(BigInteger data)
Writes DMR
number . |
ModelWriter |
writeBoolean(boolean data)
Writes DMR
true or false token. |
ModelWriter |
writeBytes(byte[] data)
Writes DMR
bytes . |
ModelWriter |
writeDouble(double data)
Writes DMR
number . |
ModelWriter |
writeExpression(String data)
Writes DMR
expression . |
ModelWriter |
writeInt(int data)
Writes DMR
number . |
ModelWriter |
writeListEnd()
Writes DMR
list end token. |
ModelWriter |
writeListStart()
Writes DMR
list start token. |
ModelWriter |
writeLong(long data)
Writes DMR
number . |
ModelWriter |
writeObjectEnd()
Writes DMR
object end token. |
ModelWriter |
writeObjectStart()
Writes DMR
object start token. |
ModelWriter |
writePropertyEnd()
Writes DMR
property end token. |
ModelWriter |
writePropertyStart()
Writes DMR
property start token. |
ModelWriter |
writeString(String data)
Writes DMR
string . |
ModelWriter |
writeType(ModelType data)
Writes DMR
type . |
ModelWriter |
writeUndefined()
Writes DMR
undefined token. |
ModelWriter writeObjectStart() throws IOException, ModelException
object start
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeObjectEnd() throws IOException, ModelException
object end
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writePropertyStart() throws IOException, ModelException
property start
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writePropertyEnd() throws IOException, ModelException
property end
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeListStart() throws IOException, ModelException
list start
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeListEnd() throws IOException, ModelException
list end
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeUndefined() throws IOException, ModelException
undefined
token.IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeString(String data) throws IOException, ModelException
string
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeExpression(String data) throws IOException, ModelException
expression
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeBytes(byte[] data) throws IOException, ModelException
bytes
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeBoolean(boolean data) throws IOException, ModelException
true
or false
token.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeInt(int data) throws IOException, ModelException
number
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeLong(long data) throws IOException, ModelException
number
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeBigInteger(BigInteger data) throws IOException, ModelException
number
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeBigDecimal(BigDecimal data) throws IOException, ModelException
number
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeDouble(double data) throws IOException, ModelException
number
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedModelWriter writeType(ModelType data) throws IOException, ModelException
type
.data
- to encodeIOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedvoid flush() throws IOException
flush
in interface Flushable
IOException
- if some I/O error occursvoid close() throws IOException, ModelException
close
in interface AutoCloseable
IOException
- if some I/O error occursModelException
- if invalid DMR write attempt is detectedCopyright © 2017 JBoss by Red Hat. All rights reserved.