<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Thu Dec 02 16:59:39 UTC 2010 --> <TITLE> TupleOutput </TITLE> <META NAME="date" CONTENT="2010-12-02"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="TupleOutput"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleMarshalledBinding.html" title="class in com.sleepycat.bdb.bind.tuple"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleTupleBinding.html" title="class in com.sleepycat.bdb.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sleepycat/bdb/bind/tuple/TupleOutput.html" target="_top"><B>FRAMES</B></A> <A HREF="TupleOutput.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.sleepycat.bdb.util.FastOutputStream">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.sleepycat.bdb.bind.tuple</FONT> <BR> Class TupleOutput</H2> <PRE> java.lang.Object <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">java.io.OutputStream <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html" title="class in com.sleepycat.bdb.util">com.sleepycat.bdb.util.FastOutputStream</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bdb.bind.tuple.TupleOutput</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.io.Closeable, java.io.Flushable</DD> </DL> <HR> <DL> <DT><PRE>public class <B>TupleOutput</B><DT>extends <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html" title="class in com.sleepycat.bdb.util">FastOutputStream</A></DL> </PRE> <P> Used by tuple bindings to write tuple data. <p>This class has many methods that have the same signatures as methods in the <CODE>DataOutput</CODE> interface. The reason this class does not implement <CODE>DataOutput</CODE> is because it would break the interface contract for those methods because of data format differences.</p> <p>Signed numbers are stored in the buffer in MSB (most significant byte first) order with their sign bit (high-order bit) inverted to cause negative numbers to be sorted first when comparing values as unsigned byte arrays, as done in a database. Unsigned numbers, including characters, are stored in MSB order with no change to their sign bit.</p> <p>Strings and character arrays are stored either as a fixed length array of unicode characters, where the length must be known by the application, or as a null-terminated UTF byte array.</p> <p>Floats and doubles are stored in standard integer-bit representation and are therefore not ordered by numeric value.</p> <P> <P> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.sleepycat.bdb.util.FastOutputStream"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.sleepycat.bdb.util.<A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html" title="class in com.sleepycat.bdb.util">FastOutputStream</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#DEFAULT_BUMP_SIZE">DEFAULT_BUMP_SIZE</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#DEFAULT_INIT_SIZE">DEFAULT_INIT_SIZE</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#TupleOutput()">TupleOutput</A></B>()</CODE> <BR> Creates a tuple output object for writing a byte array of tuple data.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#TupleOutput(byte[])">TupleOutput</A></B>(byte[] buffer)</CODE> <BR> Creates a tuple output object for writing a byte array of tuple data, using a given buffer.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeBoolean(boolean)">writeBoolean</A></B>(boolean val)</CODE> <BR> Writes a boolean (one byte) unsigned value to the buffer, writing one if the value is true and zero if it is false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeByte(int)">writeByte</A></B>(int val)</CODE> <BR> Writes an signed byte (one byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeBytes(char[])">writeBytes</A></B>(char[] chars)</CODE> <BR> Writes the specified bytes to the buffer, converting each character to an unsigned byte value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeBytes(java.lang.String)">writeBytes</A></B>(java.lang.String val)</CODE> <BR> Writes the specified bytes to the buffer, converting each character to an unsigned byte value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeChar(int)">writeChar</A></B>(int val)</CODE> <BR> Writes a char (two byte) unsigned value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeChars(char[])">writeChars</A></B>(char[] chars)</CODE> <BR> Writes the specified characters to the buffer, converting each character to a two byte unsigned value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeChars(java.lang.String)">writeChars</A></B>(java.lang.String val)</CODE> <BR> Writes the specified characters to the buffer, converting each character to a two byte unsigned value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeDouble(double)">writeDouble</A></B>(double val)</CODE> <BR> Writes an signed double (eight byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeFloat(float)">writeFloat</A></B>(float val)</CODE> <BR> Writes an signed float (four byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeInt(int)">writeInt</A></B>(int val)</CODE> <BR> Writes an signed int (four byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeLong(long)">writeLong</A></B>(long val)</CODE> <BR> Writes an signed long (eight byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeShort(int)">writeShort</A></B>(int val)</CODE> <BR> Writes an signed short (two byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeString(char[])">writeString</A></B>(char[] chars)</CODE> <BR> Writes the specified characters to the buffer, converting each character to UTF format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeString(java.lang.String)">writeString</A></B>(java.lang.String val)</CODE> <BR> Writes the specified characters to the buffer, converting each character to UTF format, and adding a null terminator byte.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeUnsignedByte(int)">writeUnsignedByte</A></B>(int val)</CODE> <BR> Writes an unsigned byte (one byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeUnsignedInt(long)">writeUnsignedInt</A></B>(long val)</CODE> <BR> Writes an unsigned int (four byte) value to the buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleOutput.html#writeUnsignedShort(int)">writeUnsignedShort</A></B>(int val)</CODE> <BR> Writes an unsigned short (two byte) value to the buffer.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.sleepycat.bdb.util.FastOutputStream"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bdb.util.<A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html" title="class in com.sleepycat.bdb.util">FastOutputStream</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#addSize(int)">addSize</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#getBufferBytes()">getBufferBytes</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#getBufferLength()">getBufferLength</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#getBufferOffset()">getBufferOffset</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#makeSpace(int)">makeSpace</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#reset()">reset</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#size()">size</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#toByteArray()">toByteArray</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#toByteArray(byte[], int)">toByteArray</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#toString()">toString</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#toString(java.lang.String)">toString</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#write(byte[])">write</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#write(byte[], int, int)">write</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#write(int)">write</A>, <A HREF="../../../../../com/sleepycat/bdb/util/FastOutputStream.html#writeTo(java.io.OutputStream)">writeTo</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.io.OutputStream"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.io.OutputStream</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>close, flush</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="TupleOutput()"><!-- --></A><H3> TupleOutput</H3> <PRE> public <B>TupleOutput</B>()</PRE> <DL> <DD>Creates a tuple output object for writing a byte array of tuple data. <P> </DL> <HR> <A NAME="TupleOutput(byte[])"><!-- --></A><H3> TupleOutput</H3> <PRE> public <B>TupleOutput</B>(byte[] buffer)</PRE> <DL> <DD>Creates a tuple output object for writing a byte array of tuple data, using a given buffer. A new buffer will be allocated only if the number of bytes needed is greater than the length of this buffer. A reference to the byte array will be kept by this object and therefore the byte array should not be modified while this object is in use. <P> <DL> <DT><B>Parameters:</B><DD><CODE>buffer</CODE> - is the byte array to use as the buffer.</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="writeBytes(java.lang.String)"><!-- --></A><H3> writeBytes</H3> <PRE> public final void <B>writeBytes</B>(java.lang.String val) throws java.io.IOException</PRE> <DL> <DD>Writes the specified bytes to the buffer, converting each character to an unsigned byte value. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readBytes(int)"><CODE>TupleInput.readBytes(int)</CODE></A>. Only characters with values below 0x100 may be written using this method, since the high-order 8 bits of all characters are discarded. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the string containing the values to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeChars(java.lang.String)"><!-- --></A><H3> writeChars</H3> <PRE> public final void <B>writeChars</B>(java.lang.String val) throws java.io.IOException</PRE> <DL> <DD>Writes the specified characters to the buffer, converting each character to a two byte unsigned value. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readChars(int)"><CODE>TupleInput.readChars(int)</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the string containing the characters to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeString(java.lang.String)"><!-- --></A><H3> writeString</H3> <PRE> public final void <B>writeString</B>(java.lang.String val) throws java.io.IOException</PRE> <DL> <DD>Writes the specified characters to the buffer, converting each character to UTF format, and adding a null terminator byte. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readString()"><CODE>TupleInput.readString()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the string containing the characters to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeChar(int)"><!-- --></A><H3> writeChar</H3> <PRE> public final void <B>writeChar</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes a char (two byte) unsigned value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readChar()"><CODE>TupleInput.readChar()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeBoolean(boolean)"><!-- --></A><H3> writeBoolean</H3> <PRE> public final void <B>writeBoolean</B>(boolean val) throws java.io.IOException</PRE> <DL> <DD>Writes a boolean (one byte) unsigned value to the buffer, writing one if the value is true and zero if it is false. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readBoolean()"><CODE>TupleInput.readBoolean()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeByte(int)"><!-- --></A><H3> writeByte</H3> <PRE> public final void <B>writeByte</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed byte (one byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readByte()"><CODE>TupleInput.readByte()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeShort(int)"><!-- --></A><H3> writeShort</H3> <PRE> public final void <B>writeShort</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed short (two byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readShort()"><CODE>TupleInput.readShort()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeInt(int)"><!-- --></A><H3> writeInt</H3> <PRE> public final void <B>writeInt</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed int (four byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readInt()"><CODE>TupleInput.readInt()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeLong(long)"><!-- --></A><H3> writeLong</H3> <PRE> public final void <B>writeLong</B>(long val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed long (eight byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readLong()"><CODE>TupleInput.readLong()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeFloat(float)"><!-- --></A><H3> writeFloat</H3> <PRE> public final void <B>writeFloat</B>(float val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed float (four byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readFloat()"><CODE>TupleInput.readFloat()</CODE></A>. <code>Float.floatToIntBits</code> is used to convert the signed float value. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeDouble(double)"><!-- --></A><H3> writeDouble</H3> <PRE> public final void <B>writeDouble</B>(double val) throws java.io.IOException</PRE> <DL> <DD>Writes an signed double (eight byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readDouble()"><CODE>TupleInput.readDouble()</CODE></A>. <code>Double.doubleToLongBits</code> is used to convert the signed double value. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeBytes(char[])"><!-- --></A><H3> writeBytes</H3> <PRE> public final void <B>writeBytes</B>(char[] chars) throws java.io.IOException</PRE> <DL> <DD>Writes the specified bytes to the buffer, converting each character to an unsigned byte value. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readBytes(int)"><CODE>TupleInput.readBytes(int)</CODE></A>. Only characters with values below 0x100 may be written using this method, since the high-order 8 bits of all characters are discarded. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>chars</CODE> - is the array of values to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeChars(char[])"><!-- --></A><H3> writeChars</H3> <PRE> public final void <B>writeChars</B>(char[] chars) throws java.io.IOException</PRE> <DL> <DD>Writes the specified characters to the buffer, converting each character to a two byte unsigned value. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readChars(int)"><CODE>TupleInput.readChars(int)</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>chars</CODE> - is the array of characters to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeString(char[])"><!-- --></A><H3> writeString</H3> <PRE> public final void <B>writeString</B>(char[] chars) throws java.io.IOException</PRE> <DL> <DD>Writes the specified characters to the buffer, converting each character to UTF format. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readString(int)"><CODE>TupleInput.readString(int)</CODE></A> or <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readString(char[])"><CODE>TupleInput.readString(char[])</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>chars</CODE> - is the array of characters to be written. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeUnsignedByte(int)"><!-- --></A><H3> writeUnsignedByte</H3> <PRE> public final void <B>writeUnsignedByte</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes an unsigned byte (one byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readUnsignedByte()"><CODE>TupleInput.readUnsignedByte()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeUnsignedShort(int)"><!-- --></A><H3> writeUnsignedShort</H3> <PRE> public final void <B>writeUnsignedShort</B>(int val) throws java.io.IOException</PRE> <DL> <DD>Writes an unsigned short (two byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readUnsignedShort()"><CODE>TupleInput.readUnsignedShort()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <HR> <A NAME="writeUnsignedInt(long)"><!-- --></A><H3> writeUnsignedInt</H3> <PRE> public final void <B>writeUnsignedInt</B>(long val) throws java.io.IOException</PRE> <DL> <DD>Writes an unsigned int (four byte) value to the buffer. Writes values that can be read using <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleInput.html#readUnsignedInt()"><CODE>TupleInput.readUnsignedInt()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the value to write to the buffer. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - is never thrown but is declared for compatibility with {java.io.OutputStream#write}.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleMarshalledBinding.html" title="class in com.sleepycat.bdb.bind.tuple"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sleepycat/bdb/bind/tuple/TupleTupleBinding.html" title="class in com.sleepycat.bdb.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sleepycat/bdb/bind/tuple/TupleOutput.html" target="_top"><B>FRAMES</B></A> <A HREF="TupleOutput.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.sleepycat.bdb.util.FastOutputStream">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>