public class ValueWriter extends Object
| Constructor and Description |
|---|
ValueWriter(DataOutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Public API - call this to ensure all accumulated
values are correctly written to the output stream.
|
void |
writeArray(List<?> value) |
void |
writeArray(Object[] value) |
void |
writeFieldValue(Object value) |
void |
writeLong(int l)
Public API - encodes an integer.
|
void |
writeLonglong(long ll)
Public API - encodes a long integer.
|
void |
writeLongstr(LongString str)
Public API - encodes a long string from a LongString.
|
void |
writeLongstr(String str)
Public API - encodes a long string from a String.
|
void |
writeOctet(byte octet)
Public API - encodes an octet from a byte.
|
void |
writeOctet(int octet)
Public API - encodes an octet from an int.
|
void |
writeShort(int s)
Public API - encodes a short integer.
|
void |
writeShortstr(String str)
Public API - encodes a short string.
|
void |
writeTable(Map<String,Object> table)
Public API - encodes a table.
|
void |
writeTimestamp(Date timestamp)
Public API - encodes a timestamp.
|
public ValueWriter(DataOutputStream out)
public final void writeShortstr(String str) throws IOException
IOExceptionpublic final void writeLongstr(LongString str) throws IOException
IOExceptionpublic final void writeLongstr(String str) throws IOException
IOExceptionpublic final void writeShort(int s)
throws IOException
IOExceptionpublic final void writeLong(int l)
throws IOException
IOExceptionpublic final void writeLonglong(long ll)
throws IOException
IOExceptionpublic final void writeTable(Map<String,Object> table) throws IOException
IOExceptionpublic final void writeFieldValue(Object value) throws IOException
IOExceptionpublic final void writeArray(List<?> value) throws IOException
IOExceptionpublic final void writeArray(Object[] value) throws IOException
IOExceptionpublic final void writeOctet(int octet)
throws IOException
IOExceptionpublic final void writeOctet(byte octet)
throws IOException
IOExceptionpublic final void writeTimestamp(Date timestamp) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.