public class TypedBytesRecordOutput extends Object
Constructor and Description |
---|
TypedBytesRecordOutput(DataOutput out)
Creates a new instance of TypedBytesRecordOutput.
|
TypedBytesRecordOutput(TypedBytesOutput out)
Creates a new instance of TypedBytesRecordOutput.
|
Modifier and Type | Method and Description |
---|---|
void |
endMap(TreeMap m,
String tag) |
void |
endVector(ArrayList v,
String tag) |
static TypedBytesRecordOutput |
get(DataOutput out)
Get a thread-local typed bytes record output for the supplied
DataOutput . |
static TypedBytesRecordOutput |
get(TypedBytesOutput out)
Get a thread-local typed bytes record input for the supplied
TypedBytesOutput . |
void |
startMap(TreeMap m,
String tag) |
void |
startVector(ArrayList v,
String tag) |
void |
writeBool(boolean b,
String tag) |
void |
writeByte(byte b,
String tag) |
void |
writeDouble(double d,
String tag) |
void |
writeFloat(float f,
String tag) |
void |
writeInt(int i,
String tag) |
void |
writeLong(long l,
String tag) |
void |
writeString(String s,
String tag) |
public TypedBytesRecordOutput(TypedBytesOutput out)
public TypedBytesRecordOutput(DataOutput out)
public static TypedBytesRecordOutput get(TypedBytesOutput out)
TypedBytesOutput
.out
- typed bytes output objectTypedBytesOutput
.public static TypedBytesRecordOutput get(DataOutput out)
DataOutput
.out
- data output objectDataOutput
.public void writeBool(boolean b, String tag) throws IOException
IOException
public void writeByte(byte b, String tag) throws IOException
IOException
public void writeDouble(double d, String tag) throws IOException
IOException
public void writeFloat(float f, String tag) throws IOException
IOException
public void writeInt(int i, String tag) throws IOException
IOException
public void writeLong(long l, String tag) throws IOException
IOException
public void writeString(String s, String tag) throws IOException
IOException
public void startVector(ArrayList v, String tag) throws IOException
IOException
public void startMap(TreeMap m, String tag) throws IOException
IOException
public void endVector(ArrayList v, String tag) throws IOException
IOException
public void endMap(TreeMap m, String tag) throws IOException
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.