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
IOException
public final void writeLongstr(LongString str) throws IOException
IOException
public final void writeLongstr(String str) throws IOException
IOException
public final void writeShort(int s) throws IOException
IOException
public final void writeLong(int l) throws IOException
IOException
public final void writeLonglong(long ll) throws IOException
IOException
public final void writeTable(Map<String,Object> table) throws IOException
IOException
public final void writeFieldValue(Object value) throws IOException
IOException
public final void writeArray(List<?> value) throws IOException
IOException
public final void writeArray(Object[] value) throws IOException
IOException
public final void writeOctet(int octet) throws IOException
IOException
public final void writeOctet(byte octet) throws IOException
IOException
public final void writeTimestamp(Date timestamp) throws IOException
IOException
public void flush() throws IOException
IOException
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.