Package org.apache.jute
Class BinaryOutputArchive
- java.lang.Object
-
- org.apache.jute.BinaryOutputArchive
-
- All Implemented Interfaces:
OutputArchive
public class BinaryOutputArchive extends java.lang.Object implements OutputArchive
-
-
Constructor Summary
Constructors Constructor Description BinaryOutputArchive(java.io.DataOutput out)Creates a new instance of BinaryOutputArchive
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendMap(java.util.TreeMap v, java.lang.String tag)voidendRecord(Record r, java.lang.String tag)voidendVector(java.util.List v, java.lang.String tag)static BinaryOutputArchivegetArchive(java.io.OutputStream strm)voidstartMap(java.util.TreeMap v, java.lang.String tag)voidstartRecord(Record r, java.lang.String tag)voidstartVector(java.util.List v, java.lang.String tag)voidwriteBool(boolean b, java.lang.String tag)voidwriteBuffer(byte[] barr, java.lang.String tag)voidwriteByte(byte b, java.lang.String tag)voidwriteDouble(double d, java.lang.String tag)voidwriteFloat(float f, java.lang.String tag)voidwriteInt(int i, java.lang.String tag)voidwriteLong(long l, java.lang.String tag)voidwriteRecord(Record r, java.lang.String tag)voidwriteString(java.lang.String s, java.lang.String tag)
-
-
-
Method Detail
-
getArchive
public static BinaryOutputArchive getArchive(java.io.OutputStream strm)
-
writeByte
public void writeByte(byte b, java.lang.String tag) throws java.io.IOException- Specified by:
writeBytein interfaceOutputArchive- Throws:
java.io.IOException
-
writeBool
public void writeBool(boolean b, java.lang.String tag) throws java.io.IOException- Specified by:
writeBoolin interfaceOutputArchive- Throws:
java.io.IOException
-
writeInt
public void writeInt(int i, java.lang.String tag) throws java.io.IOException- Specified by:
writeIntin interfaceOutputArchive- Throws:
java.io.IOException
-
writeLong
public void writeLong(long l, java.lang.String tag) throws java.io.IOException- Specified by:
writeLongin interfaceOutputArchive- Throws:
java.io.IOException
-
writeFloat
public void writeFloat(float f, java.lang.String tag) throws java.io.IOException- Specified by:
writeFloatin interfaceOutputArchive- Throws:
java.io.IOException
-
writeDouble
public void writeDouble(double d, java.lang.String tag) throws java.io.IOException- Specified by:
writeDoublein interfaceOutputArchive- Throws:
java.io.IOException
-
writeString
public void writeString(java.lang.String s, java.lang.String tag) throws java.io.IOException- Specified by:
writeStringin interfaceOutputArchive- Throws:
java.io.IOException
-
writeBuffer
public void writeBuffer(byte[] barr, java.lang.String tag) throws java.io.IOException- Specified by:
writeBufferin interfaceOutputArchive- Throws:
java.io.IOException
-
writeRecord
public void writeRecord(Record r, java.lang.String tag) throws java.io.IOException
- Specified by:
writeRecordin interfaceOutputArchive- Throws:
java.io.IOException
-
startRecord
public void startRecord(Record r, java.lang.String tag) throws java.io.IOException
- Specified by:
startRecordin interfaceOutputArchive- Throws:
java.io.IOException
-
endRecord
public void endRecord(Record r, java.lang.String tag) throws java.io.IOException
- Specified by:
endRecordin interfaceOutputArchive- Throws:
java.io.IOException
-
startVector
public void startVector(java.util.List v, java.lang.String tag) throws java.io.IOException- Specified by:
startVectorin interfaceOutputArchive- Throws:
java.io.IOException
-
endVector
public void endVector(java.util.List v, java.lang.String tag) throws java.io.IOException- Specified by:
endVectorin interfaceOutputArchive- Throws:
java.io.IOException
-
startMap
public void startMap(java.util.TreeMap v, java.lang.String tag) throws java.io.IOException- Specified by:
startMapin interfaceOutputArchive- Throws:
java.io.IOException
-
endMap
public void endMap(java.util.TreeMap v, java.lang.String tag) throws java.io.IOException- Specified by:
endMapin interfaceOutputArchive- Throws:
java.io.IOException
-
-