blob: 9a5f8753d348d8516688ce01845f37a60e254897 [file] [log] [blame]
<!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.5.0_05) on Thu Dec 08 16:09:29 KST 2005 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
ByteBuffer (MINA 0.9.0 API)
</TITLE>
<META NAME="keywords" CONTENT="org.apache.mina.common.ByteBuffer class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ByteBuffer (MINA 0.9.0 API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= 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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ByteBuffer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
org.apache.mina.common</FONT>
<BR>
Class ByteBuffer</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.mina.common.ByteBuffer</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common">ByteBufferProxy</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>ByteBuffer</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></DL>
</PRE>
<P>
A pooled byte buffer used by MINA applications.
<p>
This is a replacement for <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A>. Please refer to
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> and <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html" title="class or interface in java.nio"><CODE>Buffer</CODE></A> documentation for
usage. MINA does not use NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> directly for two
reasons:
<ul>
<li>It doesn't provide useful getters and putters such as
<code>fill</code>, <code>get/putString</code>, and
<code>get/putAsciiInt()</code> enough.</li>
<li>It is hard to distinguish if the buffer is created from MINA buffer
pool or not. MINA have to return used buffers back to pool.</li>
<li>It is difficult to write variable-length data due to its fixed
capacity</li>
</ul>
<h2>Allocation</h2>
<p>
You can get a heap buffer from buffer pool:
<pre>
ByteBuffer buf = ByteBuffer.allocate(1024, false);
</pre>
you can also get a direct buffer from buffer pool:
<pre>
ByteBuffer buf = ByteBuffer.allocate(1024, true);
</pre>
or you can let MINA choose:
<pre>
ByteBuffer buf = ByteBuffer.allocate(1024);
</pre>
<h2>Acquire/Release</h2>
<p>
<b>Please note that you never need to release the allocated buffer</b>
because MINA will release it automatically when:
<ul>
<li>You pass the buffer by calling <A HREF="../../../../org/apache/mina/common/IoSession.html#write(java.lang.Object)"><CODE>IoSession.write(Object)</CODE></A>.</li>
<li>You pass the buffer by calling <A HREF="../../../../org/apache/mina/common/IoFilter.NextFilter.html#filterWrite(org.apache.mina.common.IoSession, org.apache.mina.common.IoFilter.WriteRequest)"><CODE>IoFilter.NextFilter.filterWrite(IoSession,IoFilter.WriteRequest)</CODE></A>.</li>
<li>You pass the buffer by calling <A HREF="../../../../org/apache/mina/filter/codec/ProtocolEncoderOutput.html#write(org.apache.mina.common.ByteBuffer)"><CODE>ProtocolEncoderOutput.write(ByteBuffer)</CODE></A>.</li>
</ul>
And, you don't need to release any <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common"><CODE>ByteBuffer</CODE></A> which is passed as a parameter
of <A HREF="../../../../org/apache/mina/common/IoHandler.html#messageReceived(org.apache.mina.common.IoSession, java.lang.Object)"><CODE>IoHandler.messageReceived(IoSession, Object)</CODE></A> method. They are released
automatically when the method returns.
<p>
You have to release buffers manually by calling <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#release()"><CODE>release()</CODE></A> when:
<ul>
<li>You allocated a buffer, but didn't pass the buffer to any of two methods above.</li>
<li>You called <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#acquire()"><CODE>acquire()</CODE></A> to prevent the buffer from being released.</li>
</ul>
<h2>Wrapping existing NIO buffers and arrays</h2>
<p>
This class provides a few <tt>wrap(...)</tt> methods that wraps
any NIO buffers and byte arrays. Wrapped MINA buffers are not returned
to the buffer pool by default to prevent unexpected memory leakage by default.
In case you want to make it pooled, you can call <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setPooled(boolean)"><CODE>setPooled(boolean)</CODE></A>
with <tt>true</tt> flag to enable pooling.
<h2>AutoExpand</h2>
<p>
Writing variable-length data using NIO <tt>ByteBuffers</tt> is not really
easy, and it is because its size is fixed. MINA <tt>ByteBuffer</tt>
introduces <tt>autoExpand</tt> property. If <tt>autoExpand</tt> property
is true, you never get <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio"><CODE>BufferOverflowException</CODE></A> or
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang"><CODE>IndexOutOfBoundsException</CODE></A> (except when index is negative).
It automatically expands its capacity and limit value. For example:
<pre>
String greeting = messageBundle.getMessage( "hello" );
ByteBuffer buf = ByteBuffer.allocate( 16 );
// Turn on autoExpand (it is off by default)
buf.setAutoExpand( true );
buf.putString( greeting, utf8encoder );
</pre>
NIO <tt>ByteBuffer</tt> is reallocated by MINA <tt>ByteBuffer</tt> behind
the scene if the encoded data is larger than 16 bytes. Its capacity will
increase by two times, and its limit will increase to the last position
the string is written.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Rev: 355016 $, $Date: 2005-12-08 16:00:30 +0900 (Thu, 08 Dec 2005) $</DD>
<DT><B>Author:</B></DT>
<DD>The Apache Directory Project (dev@directory.apache.org)</DD>
</DL>
<HR>
<P>
<!-- ======== 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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#ByteBuffer()">ByteBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#acquire()">acquire</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increases the internal reference count of this buffer to defer
automatic release.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)">allocate</A></B>(int&nbsp;capacity)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the direct or heap buffer which is capable of the specified
size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)">allocate</A></B>(int&nbsp;capacity,
boolean&nbsp;direct)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the buffer which is capable of the specified size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/CharBuffer.html" title="class or interface in java.nio">CharBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asCharBuffer()">asCharBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/DoubleBuffer.html" title="class or interface in java.nio">DoubleBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asDoubleBuffer()">asDoubleBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/FloatBuffer.html" title="class or interface in java.nio">FloatBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asFloatBuffer()">asFloatBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asInputStream()">asInputStream</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io"><CODE>InputStream</CODE></A> that reads the data from this buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/IntBuffer.html" title="class or interface in java.nio">IntBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asIntBuffer()">asIntBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/LongBuffer.html" title="class or interface in java.nio">LongBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asLongBuffer()">asLongBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asOutputStream()">asOutputStream</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io"><CODE>OutputStream</CODE></A> that appends the data into this buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ShortBuffer.html" title="class or interface in java.nio">ShortBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asShortBuffer()">asShortBuffer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#autoExpand(int)">autoExpand</A></B>(int&nbsp;expectedRemaining)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when
<tt>autoExpand</tt> property is <tt>true</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#autoExpand(int, int)">autoExpand</A></B>(int&nbsp;pos,
int&nbsp;expectedRemaining)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when
<tt>autoExpand</tt> property is <tt>true</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#buf()">buf</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the underlying NIO buffer instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#capacity()">capacity</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#clear()">clear</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#compact()">compact</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#compareTo(java.lang.Object)">compareTo</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)">expand</A></B>(int&nbsp;expectedRemaining)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the capacity and limit of this buffer so this buffer get
the specified <tt>expectedRemaining</tt> room from the current position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int, int)">expand</A></B>(int&nbsp;pos,
int&nbsp;expectedRemaining)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the capacity and limit of this buffer so this buffer get
the specified <tt>expectedRemaining</tt> room from the specified
<tt>pos</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fill(byte, int)">fill</A></B>(byte&nbsp;value,
int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills this buffer with the specified value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fill(int)">fill</A></B>(int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills this buffer with <code>NUL (0x00)</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset(byte, int)">fillAndReset</A></B>(byte&nbsp;value,
int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills this buffer with the specified value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset(int)">fillAndReset</A></B>(int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills this buffer with <code>NUL (0x00)</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#flip()">flip</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get()">get</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(byte[])">get</A></B>(byte[]&nbsp;dst)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(byte[], int, int)">get</A></B>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(int)">get</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getChar()">getChar</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getChar(int)">getChar</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getDouble()">getDouble</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getDouble(int)">getDouble</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getFloat()">getFloat</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getFloat(int)">getFloat</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getHexDump()">getHexDump</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns hexdump of this buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getInt()">getInt</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getInt(int)">getInt</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getLong()">getLong</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getLong(int)">getLong</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getObject()">getObject</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a Java object from the buffer using the context <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A>
of the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getObject(java.lang.ClassLoader)">getObject</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a Java object from the buffer using the specified <tt>classLoader</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString(java.nio.charset.CharsetDecoder)">getPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a string which has a 16-bit length field before the actual
encoded string, using the specified <code>decoder</code> and returns it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString(int, java.nio.charset.CharsetDecoder)">getPrefixedString</A></B>(int&nbsp;prefixLength,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a string which has a length field before the actual
encoded string, using the specified <code>decoder</code> and returns it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getShort()">getShort</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getShort(int)">getShort</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getString(java.nio.charset.CharsetDecoder)">getString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getString(int, java.nio.charset.CharsetDecoder)">getString</A></B>(int&nbsp;fieldSize,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned()">getUnsigned</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one unsigned byte as a short integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned(int)">getUnsigned</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one byte as an unsigned short integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt()">getUnsignedInt</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads four bytes unsigned integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt(int)">getUnsignedInt</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads four bytes unsigned integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort()">getUnsignedShort</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads two bytes unsigned integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort(int)">getUnsignedShort</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads two bytes unsigned integer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#hashCode()">hashCode</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#hasRemaining()">hasRemaining</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isAutoExpand()">isAutoExpand</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isDirect()">isDirect</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isPooled()">isPooled</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <tt>true</tt> if and only if this buffer is returned back
to the buffer pool when released.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#limit()">limit</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#limit(int)">limit</A></B>(int&nbsp;newLimit)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#mark()">mark</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#order()">order</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#order(java.nio.ByteOrder)">order</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A>&nbsp;bo)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#position()">position</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#position(int)">position</A></B>(int&nbsp;newPosition)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int)">prefixedDataAvailable</A></B>(int&nbsp;prefixLength)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <tt>true</tt> if this buffer contains a data which has a data
length as a prefix and the buffer has remaining data as enough as
specified in the data length field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int, int)">prefixedDataAvailable</A></B>(int&nbsp;prefixLength,
int&nbsp;maxDataLength)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <tt>true</tt> if this buffer contains a data which has a data
length as a prefix and the buffer has remaining data as enough as
specified in the data length field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte)">put</A></B>(byte&nbsp;b)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte[])">put</A></B>(byte[]&nbsp;src)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte[], int, int)">put</A></B>(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(java.nio.ByteBuffer)">put</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;src)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of the specified <tt>src</tt> into this buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(org.apache.mina.common.ByteBuffer)">put</A></B>(<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A>&nbsp;src)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of the specified <tt>src</tt> into this buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(int, byte)">put</A></B>(int&nbsp;index,
byte&nbsp;b)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putChar(char)">putChar</A></B>(char&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putChar(int, char)">putChar</A></B>(int&nbsp;index,
char&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putDouble(double)">putDouble</A></B>(double&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putDouble(int, double)">putDouble</A></B>(int&nbsp;index,
double&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putFloat(float)">putFloat</A></B>(float&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putFloat(int, float)">putFloat</A></B>(int&nbsp;index,
float&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putInt(int)">putInt</A></B>(int&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putInt(int, int)">putInt</A></B>(int&nbsp;index,
int&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putLong(int, long)">putLong</A></B>(int&nbsp;index,
long&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putLong(long)">putLong</A></B>(long&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putObject(java.lang.Object)">putObject</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the specified Java object to the buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
int&nbsp;prefixLength,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, int, byte, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
int&nbsp;prefixLength,
int&nbsp;padding,
byte&nbsp;padValue,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, int, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
int&nbsp;prefixLength,
int&nbsp;padding,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putShort(int, short)">putShort</A></B>(int&nbsp;index,
short&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putShort(short)">putShort</A></B>(short&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)">putString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer using the
specified <code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)">putString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
int&nbsp;fieldSize,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the content of <code>in</code> into this buffer as a
<code>NUL</code>-terminated string using the specified
<code>encoder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#release()">release</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases the specified buffer to buffer pool.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#remaining()">remaining</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#reset()">reset</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#rewind()">rewind</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setAutoExpand(boolean)">setAutoExpand</A></B>(boolean&nbsp;autoExpand)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turns on or off <tt>autoExpand</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setPooled(boolean)">setPooled</A></B>(boolean&nbsp;pooled)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether this buffer is returned back to the buffer pool when released.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#skip(int)">skip</A></B>(int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forwards the position of this buffer as the specified <code>size</code>
bytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#sweep()">sweep</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears this buffer and fills its content with <tt>NUL</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#sweep(byte)">sweep</A></B>(byte&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears this buffer and fills its content with <tt>value</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#toString()">toString</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])">wrap</A></B>(byte[]&nbsp;byteArray)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wraps the specified byte array into MINA heap buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)">wrap</A></B>(byte[]&nbsp;byteArray,
int&nbsp;offset,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wraps the specified byte array into MINA heap buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)">wrap</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;nioBuffer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wraps the specified NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> into MINA buffer.</TD>
</TR>
</TABLE>
&nbsp;<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.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<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="ByteBuffer()"><!-- --></A><H3>
ByteBuffer</H3>
<PRE>
protected <B>ByteBuffer</B>()</PRE>
<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="allocate(int)"><!-- --></A><H3>
allocate</H3>
<PRE>
public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>allocate</B>(int&nbsp;capacity)</PRE>
<DL>
<DD>Returns the direct or heap buffer which is capable of the specified
size. This method tries to allocate direct buffer first, and then
tries heap buffer if direct buffer memory is exhausted. Please use
<A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A> to allocate buffers of specific type.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>capacity</CODE> - the capacity of the buffer</DL>
</DD>
</DL>
<HR>
<A NAME="allocate(int, boolean)"><!-- --></A><H3>
allocate</H3>
<PRE>
public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>allocate</B>(int&nbsp;capacity,
boolean&nbsp;direct)</PRE>
<DL>
<DD>Returns the buffer which is capable of the specified size.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>capacity</CODE> - the capacity of the buffer<DD><CODE>direct</CODE> - <tt>true</tt> to get a direct buffer,
<tt>false</tt> to get a heap buffer.</DL>
</DD>
</DL>
<HR>
<A NAME="wrap(java.nio.ByteBuffer)"><!-- --></A><H3>
wrap</H3>
<PRE>
public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;nioBuffer)</PRE>
<DL>
<DD>Wraps the specified NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> into MINA buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="wrap(byte[])"><!-- --></A><H3>
wrap</H3>
<PRE>
public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(byte[]&nbsp;byteArray)</PRE>
<DL>
<DD>Wraps the specified byte array into MINA heap buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="wrap(byte[], int, int)"><!-- --></A><H3>
wrap</H3>
<PRE>
public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(byte[]&nbsp;byteArray,
int&nbsp;offset,
int&nbsp;length)</PRE>
<DL>
<DD>Wraps the specified byte array into MINA heap buffer.
Please note that MINA buffers are going to be pooled, and
therefore there can be waste of memory if you wrap
your byte array specifying <tt>offset</tt> and <tt>length</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="acquire()"><!-- --></A><H3>
acquire</H3>
<PRE>
public abstract void <B>acquire</B>()</PRE>
<DL>
<DD>Increases the internal reference count of this buffer to defer
automatic release. You have to invoke <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#release()"><CODE>release()</CODE></A> as many
as you invoked this method to release this buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if you attempt to acquire already
released buffer.</DL>
</DD>
</DL>
<HR>
<A NAME="release()"><!-- --></A><H3>
release</H3>
<PRE>
public abstract void <B>release</B>()</PRE>
<DL>
<DD>Releases the specified buffer to buffer pool.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if you attempt to release already
released buffer.</DL>
</DD>
</DL>
<HR>
<A NAME="buf()"><!-- --></A><H3>
buf</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> <B>buf</B>()</PRE>
<DL>
<DD>Returns the underlying NIO buffer instance.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isDirect()"><!-- --></A><H3>
isDirect</H3>
<PRE>
public abstract boolean <B>isDirect</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="capacity()"><!-- --></A><H3>
capacity</H3>
<PRE>
public abstract int <B>capacity</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isAutoExpand()"><!-- --></A><H3>
isAutoExpand</H3>
<PRE>
public abstract boolean <B>isAutoExpand</B>()</PRE>
<DL>
<DD>Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setAutoExpand(boolean)"><!-- --></A><H3>
setAutoExpand</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>setAutoExpand</B>(boolean&nbsp;autoExpand)</PRE>
<DL>
<DD>Turns on or off <tt>autoExpand</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="expand(int)"><!-- --></A><H3>
expand</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>expand</B>(int&nbsp;expectedRemaining)</PRE>
<DL>
<DD>Changes the capacity and limit of this buffer so this buffer get
the specified <tt>expectedRemaining</tt> room from the current position.
This method works even if you didn't set <tt>autoExpand</tt> to
<tt>true</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="expand(int, int)"><!-- --></A><H3>
expand</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>expand</B>(int&nbsp;pos,
int&nbsp;expectedRemaining)</PRE>
<DL>
<DD>Changes the capacity and limit of this buffer so this buffer get
the specified <tt>expectedRemaining</tt> room from the specified
<tt>pos</tt>.
This method works even if you didn't set <tt>autoExpand</tt> to
<tt>true</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isPooled()"><!-- --></A><H3>
isPooled</H3>
<PRE>
public abstract boolean <B>isPooled</B>()</PRE>
<DL>
<DD>Returns <tt>true</tt> if and only if this buffer is returned back
to the buffer pool when released.
<p>
The default value of this property is <tt>true</tt> if and only if you
allocated this buffer using <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)"><CODE>allocate(int)</CODE></A> or <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A>,
or <tt>false</tt> otherwise. (i.e. <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])"><CODE>wrap(byte[])</CODE></A>, <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)"><CODE>wrap(byte[], int, int)</CODE></A>,
and <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)"><CODE>wrap(java.nio.ByteBuffer)</CODE></A>)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPooled(boolean)"><!-- --></A><H3>
setPooled</H3>
<PRE>
public abstract void <B>setPooled</B>(boolean&nbsp;pooled)</PRE>
<DL>
<DD>Sets whether this buffer is returned back to the buffer pool when released.
<p>
The default value of this property is <tt>true</tt> if and only if you
allocated this buffer using <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)"><CODE>allocate(int)</CODE></A> or <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A>,
or <tt>false</tt> otherwise. (i.e. <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])"><CODE>wrap(byte[])</CODE></A>, <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)"><CODE>wrap(byte[], int, int)</CODE></A>,
and <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)"><CODE>wrap(java.nio.ByteBuffer)</CODE></A>)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="position()"><!-- --></A><H3>
position</H3>
<PRE>
public abstract int <B>position</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#position()" title="class or interface in java.nio"><CODE>Buffer.position()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="position(int)"><!-- --></A><H3>
position</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>position</B>(int&nbsp;newPosition)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#position(int)" title="class or interface in java.nio"><CODE>Buffer.position(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="limit()"><!-- --></A><H3>
limit</H3>
<PRE>
public abstract int <B>limit</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#limit()" title="class or interface in java.nio"><CODE>Buffer.limit()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="limit(int)"><!-- --></A><H3>
limit</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>limit</B>(int&nbsp;newLimit)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#limit(int)" title="class or interface in java.nio"><CODE>Buffer.limit(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="mark()"><!-- --></A><H3>
mark</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>mark</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#mark()" title="class or interface in java.nio"><CODE>Buffer.mark()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>reset</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#reset()" title="class or interface in java.nio"><CODE>Buffer.reset()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="clear()"><!-- --></A><H3>
clear</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>clear</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#clear()" title="class or interface in java.nio"><CODE>Buffer.clear()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="sweep()"><!-- --></A><H3>
sweep</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>sweep</B>()</PRE>
<DL>
<DD>Clears this buffer and fills its content with <tt>NUL</tt>.
The position is set to zero, the limit is set to the capacity,
and the mark is discarded.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sweep(byte)"><!-- --></A><H3>
sweep</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>sweep</B>(byte&nbsp;value)</PRE>
<DL>
<DD>Clears this buffer and fills its content with <tt>value</tt>.
The position is set to zero, the limit is set to the capacity,
and the mark is discarded.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="flip()"><!-- --></A><H3>
flip</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>flip</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#flip()" title="class or interface in java.nio"><CODE>Buffer.flip()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="rewind()"><!-- --></A><H3>
rewind</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>rewind</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#rewind()" title="class or interface in java.nio"><CODE>Buffer.rewind()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="remaining()"><!-- --></A><H3>
remaining</H3>
<PRE>
public abstract int <B>remaining</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#remaining()" title="class or interface in java.nio"><CODE>Buffer.remaining()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="hasRemaining()"><!-- --></A><H3>
hasRemaining</H3>
<PRE>
public boolean <B>hasRemaining</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#hasRemaining()" title="class or interface in java.nio"><CODE>Buffer.hasRemaining()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="get()"><!-- --></A><H3>
get</H3>
<PRE>
public abstract byte <B>get</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get()" title="class or interface in java.nio"><CODE>ByteBuffer.get()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsigned()"><!-- --></A><H3>
getUnsigned</H3>
<PRE>
public short <B>getUnsigned</B>()</PRE>
<DL>
<DD>Reads one unsigned byte as a short integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="put(byte)"><!-- --></A><H3>
put</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte&nbsp;b)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte)" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="get(int)"><!-- --></A><H3>
get</H3>
<PRE>
public abstract byte <B>get</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(int)" title="class or interface in java.nio"><CODE>ByteBuffer.get(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsigned(int)"><!-- --></A><H3>
getUnsigned</H3>
<PRE>
public short <B>getUnsigned</B>(int&nbsp;index)</PRE>
<DL>
<DD>Reads one byte as an unsigned short integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="put(int, byte)"><!-- --></A><H3>
put</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(int&nbsp;index,
byte&nbsp;b)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(int, byte)" title="class or interface in java.nio"><CODE>ByteBuffer.put(int, byte)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="get(byte[], int, int)"><!-- --></A><H3>
get</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>get</B>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(byte[], int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.get(byte[], int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="get(byte[])"><!-- --></A><H3>
get</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>get</B>(byte[]&nbsp;dst)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(byte[])" title="class or interface in java.nio"><CODE>ByteBuffer.get(byte[])</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="put(java.nio.ByteBuffer)"><!-- --></A><H3>
put</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;src)</PRE>
<DL>
<DD>Writes the content of the specified <tt>src</tt> into this buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="put(org.apache.mina.common.ByteBuffer)"><!-- --></A><H3>
put</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A>&nbsp;src)</PRE>
<DL>
<DD>Writes the content of the specified <tt>src</tt> into this buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="put(byte[], int, int)"><!-- --></A><H3>
put</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte[], int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte[], int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="put(byte[])"><!-- --></A><H3>
put</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte[]&nbsp;src)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte[])" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte[])</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="compact()"><!-- --></A><H3>
compact</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>compact</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#compact()" title="class or interface in java.nio"><CODE>ByteBuffer.compact()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="order()"><!-- --></A><H3>
order</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A> <B>order</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#order()" title="class or interface in java.nio"><CODE>ByteBuffer.order()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="order(java.nio.ByteOrder)"><!-- --></A><H3>
order</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>order</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A>&nbsp;bo)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#order(java.nio.ByteOrder)" title="class or interface in java.nio"><CODE>ByteBuffer.order(ByteOrder)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getChar()"><!-- --></A><H3>
getChar</H3>
<PRE>
public abstract char <B>getChar</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getChar()" title="class or interface in java.nio"><CODE>ByteBuffer.getChar()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putChar(char)"><!-- --></A><H3>
putChar</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putChar</B>(char&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putChar(char)" title="class or interface in java.nio"><CODE>ByteBuffer.putChar(char)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getChar(int)"><!-- --></A><H3>
getChar</H3>
<PRE>
public abstract char <B>getChar</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getChar(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getChar(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putChar(int, char)"><!-- --></A><H3>
putChar</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putChar</B>(int&nbsp;index,
char&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putChar(int, char)" title="class or interface in java.nio"><CODE>ByteBuffer.putChar(int, char)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asCharBuffer()"><!-- --></A><H3>
asCharBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/CharBuffer.html" title="class or interface in java.nio">CharBuffer</A> <B>asCharBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asCharBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asCharBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getShort()"><!-- --></A><H3>
getShort</H3>
<PRE>
public abstract short <B>getShort</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getShort()" title="class or interface in java.nio"><CODE>ByteBuffer.getShort()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsignedShort()"><!-- --></A><H3>
getUnsignedShort</H3>
<PRE>
public int <B>getUnsignedShort</B>()</PRE>
<DL>
<DD>Reads two bytes unsigned integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="putShort(short)"><!-- --></A><H3>
putShort</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putShort</B>(short&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putShort(short)" title="class or interface in java.nio"><CODE>ByteBuffer.putShort(short)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getShort(int)"><!-- --></A><H3>
getShort</H3>
<PRE>
public abstract short <B>getShort</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getShort()" title="class or interface in java.nio"><CODE>ByteBuffer.getShort()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsignedShort(int)"><!-- --></A><H3>
getUnsignedShort</H3>
<PRE>
public int <B>getUnsignedShort</B>(int&nbsp;index)</PRE>
<DL>
<DD>Reads two bytes unsigned integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="putShort(int, short)"><!-- --></A><H3>
putShort</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putShort</B>(int&nbsp;index,
short&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putShort(int, short)" title="class or interface in java.nio"><CODE>ByteBuffer.putShort(int, short)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asShortBuffer()"><!-- --></A><H3>
asShortBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ShortBuffer.html" title="class or interface in java.nio">ShortBuffer</A> <B>asShortBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asShortBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asShortBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getInt()"><!-- --></A><H3>
getInt</H3>
<PRE>
public abstract int <B>getInt</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getInt()" title="class or interface in java.nio"><CODE>ByteBuffer.getInt()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsignedInt()"><!-- --></A><H3>
getUnsignedInt</H3>
<PRE>
public long <B>getUnsignedInt</B>()</PRE>
<DL>
<DD>Reads four bytes unsigned integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="putInt(int)"><!-- --></A><H3>
putInt</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putInt</B>(int&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putInt(int)" title="class or interface in java.nio"><CODE>ByteBuffer.putInt(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getInt(int)"><!-- --></A><H3>
getInt</H3>
<PRE>
public abstract int <B>getInt</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getInt(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getInt(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getUnsignedInt(int)"><!-- --></A><H3>
getUnsignedInt</H3>
<PRE>
public long <B>getUnsignedInt</B>(int&nbsp;index)</PRE>
<DL>
<DD>Reads four bytes unsigned integer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="putInt(int, int)"><!-- --></A><H3>
putInt</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putInt</B>(int&nbsp;index,
int&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putInt(int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.putInt(int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asIntBuffer()"><!-- --></A><H3>
asIntBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/IntBuffer.html" title="class or interface in java.nio">IntBuffer</A> <B>asIntBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asIntBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asIntBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLong()"><!-- --></A><H3>
getLong</H3>
<PRE>
public abstract long <B>getLong</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getLong()" title="class or interface in java.nio"><CODE>ByteBuffer.getLong()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putLong(long)"><!-- --></A><H3>
putLong</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putLong</B>(long&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putLong(int, long)" title="class or interface in java.nio"><CODE>ByteBuffer.putLong(int, long)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLong(int)"><!-- --></A><H3>
getLong</H3>
<PRE>
public abstract long <B>getLong</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getLong(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getLong(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putLong(int, long)"><!-- --></A><H3>
putLong</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putLong</B>(int&nbsp;index,
long&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putLong(int, long)" title="class or interface in java.nio"><CODE>ByteBuffer.putLong(int, long)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asLongBuffer()"><!-- --></A><H3>
asLongBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/LongBuffer.html" title="class or interface in java.nio">LongBuffer</A> <B>asLongBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asLongBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asLongBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getFloat()"><!-- --></A><H3>
getFloat</H3>
<PRE>
public abstract float <B>getFloat</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getFloat()" title="class or interface in java.nio"><CODE>ByteBuffer.getFloat()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putFloat(float)"><!-- --></A><H3>
putFloat</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putFloat</B>(float&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putFloat(float)" title="class or interface in java.nio"><CODE>ByteBuffer.putFloat(float)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getFloat(int)"><!-- --></A><H3>
getFloat</H3>
<PRE>
public abstract float <B>getFloat</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getFloat(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getFloat(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putFloat(int, float)"><!-- --></A><H3>
putFloat</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putFloat</B>(int&nbsp;index,
float&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putFloat(int, float)" title="class or interface in java.nio"><CODE>ByteBuffer.putFloat(int, float)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asFloatBuffer()"><!-- --></A><H3>
asFloatBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/FloatBuffer.html" title="class or interface in java.nio">FloatBuffer</A> <B>asFloatBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asFloatBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asFloatBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getDouble()"><!-- --></A><H3>
getDouble</H3>
<PRE>
public abstract double <B>getDouble</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getDouble()" title="class or interface in java.nio"><CODE>ByteBuffer.getDouble()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putDouble(double)"><!-- --></A><H3>
putDouble</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putDouble</B>(double&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putDouble(double)" title="class or interface in java.nio"><CODE>ByteBuffer.putDouble(double)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getDouble(int)"><!-- --></A><H3>
getDouble</H3>
<PRE>
public abstract double <B>getDouble</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getDouble(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getDouble(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="putDouble(int, double)"><!-- --></A><H3>
putDouble</H3>
<PRE>
public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putDouble</B>(int&nbsp;index,
double&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putDouble(int, double)" title="class or interface in java.nio"><CODE>ByteBuffer.putDouble(int, double)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asDoubleBuffer()"><!-- --></A><H3>
asDoubleBuffer</H3>
<PRE>
public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/DoubleBuffer.html" title="class or interface in java.nio">DoubleBuffer</A> <B>asDoubleBuffer</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asDoubleBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asDoubleBuffer()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="asInputStream()"><!-- --></A><H3>
asInputStream</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> <B>asInputStream</B>()</PRE>
<DL>
<DD>Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io"><CODE>InputStream</CODE></A> that reads the data from this buffer.
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#read()" title="class or interface in java.io"><CODE>InputStream.read()</CODE></A> returns <tt>-1</tt> if the buffer position
reaches to the limit.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="asOutputStream()"><!-- --></A><H3>
asOutputStream</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A> <B>asOutputStream</B>()</PRE>
<DL>
<DD>Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io"><CODE>OutputStream</CODE></A> that appends the data into this buffer.
Please note that the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html#write(int)" title="class or interface in java.io"><CODE>OutputStream.write(int)</CODE></A> will throw a
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio"><CODE>BufferOverflowException</CODE></A> instead of an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io"><CODE>IOException</CODE></A>
in case of buffer overflow. Please set <tt>autoExpand</tt> property by
calling <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setAutoExpand(boolean)"><CODE>setAutoExpand(boolean)</CODE></A> to prevent the unexpected runtime
exception.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getHexDump()"><!-- --></A><H3>
getHexDump</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getHexDump</B>()</PRE>
<DL>
<DD>Returns hexdump of this buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getString(java.nio.charset.CharsetDecoder)"><!-- --></A><H3>
getString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it. This method reads
until the limit of this buffer if no <tt>NUL</tt> is found.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getString(int, java.nio.charset.CharsetDecoder)"><!-- --></A><H3>
getString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getString</B>(int&nbsp;fieldSize,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fieldSize</CODE> - the maximum number of bytes to read
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer using the
specified <code>encoder</code>. This method doesn't terminate
string with <tt>NUL</tt>. You have to do it by yourself.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
int&nbsp;fieldSize,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer as a
<code>NUL</code>-terminated string using the specified
<code>encoder</code>.
<p>
If the charset name of the encoder is UTF-16, you cannot specify
odd <code>fieldSize</code>, and this method will append two
<code>NUL</code>s as a terminator.
<p>
Please note that this method doesn't terminate with <code>NUL</code>
if the input string is longer than <tt>fieldSize</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fieldSize</CODE> - the maximum number of bytes to write
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getPrefixedString(java.nio.charset.CharsetDecoder)"><!-- --></A><H3>
getPrefixedString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Reads a string which has a 16-bit length field before the actual
encoded string, using the specified <code>decoder</code> and returns it.
This method is a shortcut for <tt>getPrefixedString(2, decoder)</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getPrefixedString(int, java.nio.charset.CharsetDecoder)"><!-- --></A><H3>
getPrefixedString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPrefixedString</B>(int&nbsp;prefixLength,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A>&nbsp;decoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Reads a string which has a length field before the actual
encoded string, using the specified <code>decoder</code> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putPrefixedString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putPrefixedString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.
This method is a shortcut for <tt>putPrefixedString(in, 2, 0, encoder)</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putPrefixedString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putPrefixedString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
int&nbsp;prefixLength,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.
This method is a shortcut for <tt>putPrefixedString(in, prefixLength, 0, encoder)</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putPrefixedString(java.lang.CharSequence, int, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putPrefixedString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;in,
int&nbsp;prefixLength,
int&nbsp;padding,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.
This method is a shortcut for <tt>putPrefixedString(in, prefixLength, padding, ( byte ) 0, encoder)</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)<DD><CODE>padding</CODE> - the number of padded <tt>NUL</tt>s (1 (or 0), 2, or 4)
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putPrefixedString(java.lang.CharSequence, int, int, byte, java.nio.charset.CharsetEncoder)"><!-- --></A><H3>
putPrefixedString</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;val,
int&nbsp;prefixLength,
int&nbsp;padding,
byte&nbsp;padValue,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A>&nbsp;encoder)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE>
<DL>
<DD>Writes the content of <code>in</code> into this buffer as a
string which has a 16-bit length field before the actual
encoded string, using the specified <code>encoder</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)<DD><CODE>padding</CODE> - the number of padded bytes (1 (or 0), 2, or 4)<DD><CODE>padValue</CODE> - the value of padded bytes
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getObject()"><!-- --></A><H3>
getObject</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getObject</B>()
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></PRE>
<DL>
<DD>Reads a Java object from the buffer using the context <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A>
of the current thread.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getObject(java.lang.ClassLoader)"><!-- --></A><H3>
getObject</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getObject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></PRE>
<DL>
<DD>Reads a Java object from the buffer using the specified <tt>classLoader</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="putObject(java.lang.Object)"><!-- --></A><H3>
putObject</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putObject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD>Writes the specified Java object to the buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="prefixedDataAvailable(int)"><!-- --></A><H3>
prefixedDataAvailable</H3>
<PRE>
public boolean <B>prefixedDataAvailable</B>(int&nbsp;prefixLength)</PRE>
<DL>
<DD>Returns <tt>true</tt> if this buffer contains a data which has a data
length as a prefix and the buffer has remaining data as enough as
specified in the data length field. This method is identical with
<tt>prefixedDataAvailable( prefixLength, Integer.MAX_VALUE )</tt>.
Please not that using this method can allow DoS (Denial of Service)
attack in case the remote peer sends too big data length value.
It is recommended to use <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int, int)"><CODE>prefixedDataAvailable(int, int)</CODE></A>
instead.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the prefix field (1, 2, or 4)
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if prefixLength is wrong
<DD><CODE><A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common">BufferDataException</A></CODE> - if data length is negative</DL>
</DD>
</DL>
<HR>
<A NAME="prefixedDataAvailable(int, int)"><!-- --></A><H3>
prefixedDataAvailable</H3>
<PRE>
public boolean <B>prefixedDataAvailable</B>(int&nbsp;prefixLength,
int&nbsp;maxDataLength)</PRE>
<DL>
<DD>Returns <tt>true</tt> if this buffer contains a data which has a data
length as a prefix and the buffer has remaining data as enough as
specified in the data length field.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the prefix field (1, 2, or 4)<DD><CODE>maxDataLength</CODE> - the allowed maximum of the read data length
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if prefixLength is wrong
<DD><CODE><A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common">BufferDataException</A></CODE> - if data length is negative or greater then <tt>maxDataLength</tt></DL>
</DD>
</DL>
<HR>
<A NAME="skip(int)"><!-- --></A><H3>
skip</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>skip</B>(int&nbsp;size)</PRE>
<DL>
<DD>Forwards the position of this buffer as the specified <code>size</code>
bytes.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fill(byte, int)"><!-- --></A><H3>
fill</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fill</B>(byte&nbsp;value,
int&nbsp;size)</PRE>
<DL>
<DD>Fills this buffer with the specified value.
This method moves buffer position forward.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fillAndReset(byte, int)"><!-- --></A><H3>
fillAndReset</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fillAndReset</B>(byte&nbsp;value,
int&nbsp;size)</PRE>
<DL>
<DD>Fills this buffer with the specified value.
This method does not change buffer position.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fill(int)"><!-- --></A><H3>
fill</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fill</B>(int&nbsp;size)</PRE>
<DL>
<DD>Fills this buffer with <code>NUL (0x00)</code>.
This method moves buffer position forward.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fillAndReset(int)"><!-- --></A><H3>
fillAndReset</H3>
<PRE>
public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fillAndReset</B>(int&nbsp;size)</PRE>
<DL>
<DD>Fills this buffer with <code>NUL (0x00)</code>.
This method does not change buffer position.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="autoExpand(int)"><!-- --></A><H3>
autoExpand</H3>
<PRE>
protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>autoExpand</B>(int&nbsp;expectedRemaining)</PRE>
<DL>
<DD>This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when
<tt>autoExpand</tt> property is <tt>true</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="autoExpand(int, int)"><!-- --></A><H3>
autoExpand</H3>
<PRE>
protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>autoExpand</B>(int&nbsp;pos,
int&nbsp;expectedRemaining)</PRE>
<DL>
<DD>This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when
<tt>autoExpand</tt> property is <tt>true</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ByteBuffer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &copy; 2004-2005 . All Rights Reserved.
</BODY>
</HTML>