Package org.apache.jute
Class ToStringOutputArchive
- java.lang.Object
-
- org.apache.jute.ToStringOutputArchive
-
- All Implemented Interfaces:
OutputArchive
public class ToStringOutputArchive extends Object implements OutputArchive
-
-
Constructor Summary
Constructors Constructor Description ToStringOutputArchive(OutputStream out)
Creates a new instance of ToStringOutputArchive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endMap(TreeMap<?,?> v, String tag)
void
endRecord(Record r, String tag)
void
endVector(List<?> v, String tag)
long
getDataSize()
void
startMap(TreeMap<?,?> v, String tag)
void
startRecord(Record r, String tag)
void
startVector(List<?> v, String tag)
void
writeBool(boolean b, String tag)
void
writeBuffer(byte[] buf, 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
writeRecord(Record r, String tag)
void
writeString(String s, String tag)
-
-
-
Constructor Detail
-
ToStringOutputArchive
public ToStringOutputArchive(OutputStream out) throws UnsupportedEncodingException
Creates a new instance of ToStringOutputArchive.- Throws:
UnsupportedEncodingException
-
-
Method Detail
-
writeByte
public void writeByte(byte b, String tag) throws IOException
- Specified by:
writeByte
in interfaceOutputArchive
- Throws:
IOException
-
writeBool
public void writeBool(boolean b, String tag) throws IOException
- Specified by:
writeBool
in interfaceOutputArchive
- Throws:
IOException
-
writeInt
public void writeInt(int i, String tag) throws IOException
- Specified by:
writeInt
in interfaceOutputArchive
- Throws:
IOException
-
writeLong
public void writeLong(long l, String tag) throws IOException
- Specified by:
writeLong
in interfaceOutputArchive
- Throws:
IOException
-
writeFloat
public void writeFloat(float f, String tag) throws IOException
- Specified by:
writeFloat
in interfaceOutputArchive
- Throws:
IOException
-
writeDouble
public void writeDouble(double d, String tag) throws IOException
- Specified by:
writeDouble
in interfaceOutputArchive
- Throws:
IOException
-
writeString
public void writeString(String s, String tag) throws IOException
- Specified by:
writeString
in interfaceOutputArchive
- Throws:
IOException
-
writeBuffer
public void writeBuffer(byte[] buf, String tag) throws IOException
- Specified by:
writeBuffer
in interfaceOutputArchive
- Throws:
IOException
-
writeRecord
public void writeRecord(Record r, String tag) throws IOException
- Specified by:
writeRecord
in interfaceOutputArchive
- Throws:
IOException
-
startRecord
public void startRecord(Record r, String tag) throws IOException
- Specified by:
startRecord
in interfaceOutputArchive
- Throws:
IOException
-
endRecord
public void endRecord(Record r, String tag) throws IOException
- Specified by:
endRecord
in interfaceOutputArchive
- Throws:
IOException
-
startVector
public void startVector(List<?> v, String tag) throws IOException
- Specified by:
startVector
in interfaceOutputArchive
- Throws:
IOException
-
endVector
public void endVector(List<?> v, String tag) throws IOException
- Specified by:
endVector
in interfaceOutputArchive
- Throws:
IOException
-
startMap
public void startMap(TreeMap<?,?> v, String tag) throws IOException
- Specified by:
startMap
in interfaceOutputArchive
- Throws:
IOException
-
endMap
public void endMap(TreeMap<?,?> v, String tag) throws IOException
- Specified by:
endMap
in interfaceOutputArchive
- Throws:
IOException
-
getDataSize
public long getDataSize()
- Specified by:
getDataSize
in interfaceOutputArchive
-
-