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 voidendMap(TreeMap<?,?> v, String tag)voidendRecord(Record r, String tag)voidendVector(List<?> v, String tag)longgetDataSize()voidstartMap(TreeMap<?,?> v, String tag)voidstartRecord(Record r, String tag)voidstartVector(List<?> v, String tag)voidwriteBool(boolean b, String tag)voidwriteBuffer(byte[] buf, String tag)voidwriteByte(byte b, String tag)voidwriteDouble(double d, String tag)voidwriteFloat(float f, String tag)voidwriteInt(int i, String tag)voidwriteLong(long l, String tag)voidwriteRecord(Record r, String tag)voidwriteString(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:
writeBytein interfaceOutputArchive- Throws:
IOException
-
writeBool
public void writeBool(boolean b, String tag) throws IOException- Specified by:
writeBoolin interfaceOutputArchive- Throws:
IOException
-
writeInt
public void writeInt(int i, String tag) throws IOException- Specified by:
writeIntin interfaceOutputArchive- Throws:
IOException
-
writeLong
public void writeLong(long l, String tag) throws IOException- Specified by:
writeLongin interfaceOutputArchive- Throws:
IOException
-
writeFloat
public void writeFloat(float f, String tag) throws IOException- Specified by:
writeFloatin interfaceOutputArchive- Throws:
IOException
-
writeDouble
public void writeDouble(double d, String tag) throws IOException- Specified by:
writeDoublein interfaceOutputArchive- Throws:
IOException
-
writeString
public void writeString(String s, String tag) throws IOException
- Specified by:
writeStringin interfaceOutputArchive- Throws:
IOException
-
writeBuffer
public void writeBuffer(byte[] buf, String tag) throws IOException- Specified by:
writeBufferin interfaceOutputArchive- Throws:
IOException
-
writeRecord
public void writeRecord(Record r, String tag) throws IOException
- Specified by:
writeRecordin interfaceOutputArchive- Throws:
IOException
-
startRecord
public void startRecord(Record r, String tag) throws IOException
- Specified by:
startRecordin interfaceOutputArchive- Throws:
IOException
-
endRecord
public void endRecord(Record r, String tag) throws IOException
- Specified by:
endRecordin interfaceOutputArchive- Throws:
IOException
-
startVector
public void startVector(List<?> v, String tag) throws IOException
- Specified by:
startVectorin interfaceOutputArchive- Throws:
IOException
-
endVector
public void endVector(List<?> v, String tag) throws IOException
- Specified by:
endVectorin interfaceOutputArchive- Throws:
IOException
-
startMap
public void startMap(TreeMap<?,?> v, String tag) throws IOException
- Specified by:
startMapin interfaceOutputArchive- Throws:
IOException
-
endMap
public void endMap(TreeMap<?,?> v, String tag) throws IOException
- Specified by:
endMapin interfaceOutputArchive- Throws:
IOException
-
getDataSize
public long getDataSize()
- Specified by:
getDataSizein interfaceOutputArchive
-
-