public class TaggedOutputWriter extends Object implements TaggedDataOutput
| Constructor and Description |
|---|
TaggedOutputWriter(DataOutput out,
Tags tags) |
| Modifier and Type | Method and Description |
|---|---|
<T extends TaggedPersistent> |
write(Class<? extends T> t,
T p)
Writes a possibly null object by invoking its
TaggedPersistent.write(TaggedDataOutput) method if
non-null. |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeChar(int v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
<T extends TaggedPersistent> |
writeList(Class<T> type,
List<T> elements)
Writes a list of objects, proceeded by their count.
|
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String s)
Writes a string as UTF - accepts null strings
|
public TaggedOutputWriter(DataOutput out, Tags tags)
public void writeBoolean(boolean v)
throws IOException
writeBoolean in interface TaggedDataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface TaggedDataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface TaggedDataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface TaggedDataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface TaggedDataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface TaggedDataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface TaggedDataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface TaggedDataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface TaggedDataOutputIOExceptionpublic <T extends TaggedPersistent> void write(Class<? extends T> t, T p) throws IOException
TaggedPersistent.write(TaggedDataOutput) method if
non-null.write in interface TaggedDataOutputIOExceptionpublic <T extends TaggedPersistent> void writeList(Class<T> type, List<T> elements) throws IOException
writeList in interface TaggedDataOutputtype - use T.classelements - list of objectsIOExceptionCopyright © 2024 OpenClover.org. All rights reserved.