blob: 15787ad61d18a918b69d7e99694f7951471f1692 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_191) on Fri Mar 15 10:07:11 CET 2019 -->
<title>ByteBuffer (Apache MINA API Documentation)</title>
<meta name="date" content="2019-03-15">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ByteBuffer (Apache MINA API Documentation)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":9,"i2":9,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":6,"i74":6,"i75":6,"i76":6,"i77":6,"i78":6,"i79":6,"i80":6,"i81":6,"i82":6,"i83":6,"i84":6,"i85":9,"i86":9,"i87":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ByteBuffer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/mina/common/BaseSessionManager.html" title="class in org.apache.mina.common"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top">Frames</a></li>
<li><a href="ByteBuffer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.mina.common</div>
<h2 title="Class ByteBuffer" class="title">Class ByteBuffer</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.mina.common.ByteBuffer</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common">ByteBufferProxy</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">ByteBuffer</span>
extends java.lang.Object</pre>
<div class="block">A pooled byte buffer used by MINA applications.
<p>
This is a replacement for <code>ByteBuffer</code>. Please refer to
<code>ByteBuffer</code> and <code>Buffer</code> documentation for
usage. MINA does not use NIO <code>ByteBuffer</code> 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/io/IoSession.html#write-org.apache.mina.common.ByteBuffer-java.lang.Object-"><code>IoSession.write(ByteBuffer, Object)</code></a>.</li>
<li>You pass the buffer by calling <a href="../../../../org/apache/mina/protocol/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/io/IoHandler.html#dataRead-org.apache.mina.io.IoSession-org.apache.mina.common.ByteBuffer-"><code>IoHandler.dataRead(IoSession, ByteBuffer)</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 <code>BufferOverflowException</code> or
<code>IndexOutOfBoundsException</code> (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.</div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>$Rev: 430750 $, $Date: 2006-08-11 12:18:13 +0200 (Fri, 11 Aug 2006) $</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>The Apache Directory Project (dev@directory.apache.org)</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#ByteBuffer--">ByteBuffer</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#acquire--">acquire</a></span>()</code>
<div class="block">Increases the internal reference count of this buffer to defer
automatic release.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#allocate-int-">allocate</a></span>(int&nbsp;capacity)</code>
<div class="block">Returns the direct or heap buffer which is capable of the specified
size.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#allocate-int-boolean-">allocate</a></span>(int&nbsp;capacity,
boolean&nbsp;direct)</code>
<div class="block">Returns the buffer which is capable of the specified size.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>abstract java.nio.CharBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asCharBuffer--">asCharBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>abstract java.nio.DoubleBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asDoubleBuffer--">asDoubleBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>abstract java.nio.FloatBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asFloatBuffer--">asFloatBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>abstract java.nio.IntBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asIntBuffer--">asIntBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>abstract java.nio.LongBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asLongBuffer--">asLongBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>abstract java.nio.ShortBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asShortBuffer--">asShortBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>abstract java.nio.ByteBuffer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#buf--">buf</a></span>()</code>
<div class="block">Returns the underlying NIO buffer instance.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#capacity--">capacity</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#clear--">clear</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#compact--">compact</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#compareTo-org.apache.mina.common.ByteBuffer-">compareTo</a></span>(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;that)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;ob)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#fill-byte-int-">fill</a></span>(byte&nbsp;value,
int&nbsp;size)</code>
<div class="block">Fills this buffer with the specified value.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#fill-int-">fill</a></span>(int&nbsp;size)</code>
<div class="block">Fills this buffer with <code>NUL (0x00)</code>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset-byte-int-">fillAndReset</a></span>(byte&nbsp;value,
int&nbsp;size)</code>
<div class="block">Fills this buffer with the specified value.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset-int-">fillAndReset</a></span>(int&nbsp;size)</code>
<div class="block">Fills this buffer with <code>NUL (0x00)</code>.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#flip--">flip</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>abstract byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#get--">get</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#get-byte:A-">get</a></span>(byte[]&nbsp;dst)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#get-byte:A-int-int-">get</a></span>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>abstract byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#get-int-">get</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>abstract char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getChar--">getChar</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>abstract char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getChar-int-">getChar</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>abstract double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getDouble--">getDouble</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>abstract double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getDouble-int-">getDouble</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>abstract float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getFloat--">getFloat</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>abstract float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getFloat-int-">getFloat</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getHexDump--">getHexDump</a></span>()</code>
<div class="block">Returns hexdump of this buffer.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getInt--">getInt</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getInt-int-">getInt</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getLong--">getLong</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getLong-int-">getLong</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>abstract short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getShort--">getShort</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>abstract short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getShort-int-">getShort</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getString-java.nio.charset.CharsetDecoder-">getString</a></span>(java.nio.charset.CharsetDecoder&nbsp;decoder)</code>
<div class="block">Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getString-int-java.nio.charset.CharsetDecoder-">getString</a></span>(int&nbsp;fieldSize,
java.nio.charset.CharsetDecoder&nbsp;decoder)</code>
<div class="block">Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>abstract short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned--">getUnsigned</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>abstract short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned-int-">getUnsigned</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt--">getUnsignedInt</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt-int-">getUnsignedInt</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort--">getUnsignedShort</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort-int-">getUnsignedShort</a></span>(int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#hasRemaining--">hasRemaining</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#isAutoExpand--">isAutoExpand</a></span>()</code>
<div class="block">Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#isDirect--">isDirect</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#isPooled--">isPooled</a></span>()</code>
<div class="block">Returns <tt>true</tt> if and only if this buffer is returned back
to the buffer pool when released.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#limit--">limit</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#limit-int-">limit</a></span>(int&nbsp;newLimit)</code>&nbsp;</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#mark--">mark</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>abstract java.nio.ByteOrder</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#order--">order</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#order-java.nio.ByteOrder-">order</a></span>(java.nio.ByteOrder&nbsp;bo)</code>&nbsp;</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#position--">position</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#position-int-">position</a></span>(int&nbsp;newPosition)</code>&nbsp;</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-byte-">put</a></span>(byte&nbsp;b)</code>&nbsp;</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-byte:A-">put</a></span>(byte[]&nbsp;src)</code>&nbsp;</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-byte:A-int-int-">put</a></span>(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</code>&nbsp;</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-java.nio.ByteBuffer-">put</a></span>(java.nio.ByteBuffer&nbsp;src)</code>&nbsp;</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-org.apache.mina.common.ByteBuffer-">put</a></span>(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;src)</code>&nbsp;</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#put-int-byte-">put</a></span>(int&nbsp;index,
byte&nbsp;b)</code>&nbsp;</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putChar-char-">putChar</a></span>(char&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putChar-int-char-">putChar</a></span>(int&nbsp;index,
char&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putDouble-double-">putDouble</a></span>(double&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putDouble-int-double-">putDouble</a></span>(int&nbsp;index,
double&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putFloat-float-">putFloat</a></span>(float&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putFloat-int-float-">putFloat</a></span>(int&nbsp;index,
float&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putInt-int-">putInt</a></span>(int&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putInt-int-int-">putInt</a></span>(int&nbsp;index,
int&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putLong-int-long-">putLong</a></span>(int&nbsp;index,
long&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putLong-long-">putLong</a></span>(long&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putShort-int-short-">putShort</a></span>(int&nbsp;index,
short&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putShort-short-">putShort</a></span>(short&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putString-java.lang.CharSequence-java.nio.charset.CharsetEncoder-">putString</a></span>(java.lang.CharSequence&nbsp;in,
java.nio.charset.CharsetEncoder&nbsp;encoder)</code>
<div class="block">Writes the content of <code>in</code> into this buffer using the
specified <code>encoder</code>.</div>
</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#putString-java.lang.CharSequence-int-java.nio.charset.CharsetEncoder-">putString</a></span>(java.lang.CharSequence&nbsp;in,
int&nbsp;fieldSize,
java.nio.charset.CharsetEncoder&nbsp;encoder)</code>
<div class="block">Writes the content of <code>in</code> into this buffer as a
<code>NUL</code>-terminated string using the specified
<code>encoder</code>.</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#release--">release</a></span>()</code>
<div class="block">Releases the specified buffer to buffer pool.</div>
</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#remaining--">remaining</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i79" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#reset--">reset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i80" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#rewind--">rewind</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i81" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#setAutoExpand-boolean-">setAutoExpand</a></span>(boolean&nbsp;autoExpand)</code>
<div class="block">Turns on or off <tt>autoExpand</tt>.</div>
</td>
</tr>
<tr id="i82" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#setPooled-boolean-">setPooled</a></span>(boolean&nbsp;pooled)</code>
<div class="block">Sets whether this buffer is returned back to the buffer pool when released.</div>
</td>
</tr>
<tr id="i83" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#skip-int-">skip</a></span>(int&nbsp;size)</code>
<div class="block">Forwards the position of this buffer as the specified <code>size</code>
bytes.</div>
</td>
</tr>
<tr id="i84" class="altColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i85" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#wrap-byte:A-">wrap</a></span>(byte[]&nbsp;byteArray)</code>
<div class="block">Wraps the specified byte array into MINA heap buffer.</div>
</td>
</tr>
<tr id="i86" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#wrap-byte:A-int-int-">wrap</a></span>(byte[]&nbsp;byteArray,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Wraps the specified byte array into MINA heap buffer.</div>
</td>
</tr>
<tr id="i87" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#wrap-java.nio.ByteBuffer-">wrap</a></span>(java.nio.ByteBuffer&nbsp;nioBuffer)</code>
<div class="block">Wraps the specified NIO <code>ByteBuffer</code> into MINA buffer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ByteBuffer--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ByteBuffer</h4>
<pre>protected&nbsp;ByteBuffer()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="allocate-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;allocate(int&nbsp;capacity)</pre>
<div class="block">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.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>capacity</code> - the capacity of the buffer</dd>
</dl>
</li>
</ul>
<a name="allocate-int-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;allocate(int&nbsp;capacity,
boolean&nbsp;direct)</pre>
<div class="block">Returns the buffer which is capable of the specified size.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>capacity</code> - the capacity of the buffer</dd>
<dd><code>direct</code> - <tt>true</tt> to get a direct buffer,
<tt>false</tt> to get a heap buffer.</dd>
</dl>
</li>
</ul>
<a name="wrap-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrap</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;wrap(java.nio.ByteBuffer&nbsp;nioBuffer)</pre>
<div class="block">Wraps the specified NIO <code>ByteBuffer</code> into MINA buffer.</div>
</li>
</ul>
<a name="wrap-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrap</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;wrap(byte[]&nbsp;byteArray)</pre>
<div class="block">Wraps the specified byte array into MINA heap buffer.</div>
</li>
</ul>
<a name="wrap-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrap</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;wrap(byte[]&nbsp;byteArray,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block">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>.</div>
</li>
</ul>
<a name="acquire--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>acquire</h4>
<pre>public abstract&nbsp;void&nbsp;acquire()</pre>
<div class="block">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.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if you attempt to acquire already
released buffer.</dd>
</dl>
</li>
</ul>
<a name="release--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>release</h4>
<pre>public abstract&nbsp;void&nbsp;release()</pre>
<div class="block">Releases the specified buffer to buffer pool.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if you attempt to release already
released buffer.</dd>
</dl>
</li>
</ul>
<a name="buf--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buf</h4>
<pre>public abstract&nbsp;java.nio.ByteBuffer&nbsp;buf()</pre>
<div class="block">Returns the underlying NIO buffer instance.</div>
</li>
</ul>
<a name="isDirect--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDirect</h4>
<pre>public abstract&nbsp;boolean&nbsp;isDirect()</pre>
</li>
</ul>
<a name="capacity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity</h4>
<pre>public abstract&nbsp;int&nbsp;capacity()</pre>
</li>
</ul>
<a name="isAutoExpand--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAutoExpand</h4>
<pre>public abstract&nbsp;boolean&nbsp;isAutoExpand()</pre>
<div class="block">Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on.</div>
</li>
</ul>
<a name="setAutoExpand-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAutoExpand</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;setAutoExpand(boolean&nbsp;autoExpand)</pre>
<div class="block">Turns on or off <tt>autoExpand</tt>.</div>
</li>
</ul>
<a name="isPooled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPooled</h4>
<pre>public abstract&nbsp;boolean&nbsp;isPooled()</pre>
<div class="block">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:A-"><code>wrap(byte[])</code></a>, <a href="../../../../org/apache/mina/common/ByteBuffer.html#wrap-byte:A-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>)</div>
</li>
</ul>
<a name="setPooled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPooled</h4>
<pre>public abstract&nbsp;void&nbsp;setPooled(boolean&nbsp;pooled)</pre>
<div class="block">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:A-"><code>wrap(byte[])</code></a>, <a href="../../../../org/apache/mina/common/ByteBuffer.html#wrap-byte:A-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>)</div>
</li>
</ul>
<a name="position--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>public abstract&nbsp;int&nbsp;position()</pre>
</li>
</ul>
<a name="position-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;position(int&nbsp;newPosition)</pre>
</li>
</ul>
<a name="limit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>limit</h4>
<pre>public abstract&nbsp;int&nbsp;limit()</pre>
</li>
</ul>
<a name="limit-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>limit</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;limit(int&nbsp;newLimit)</pre>
</li>
</ul>
<a name="mark--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mark</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;mark()</pre>
</li>
</ul>
<a name="reset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;reset()</pre>
</li>
</ul>
<a name="clear--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;clear()</pre>
</li>
</ul>
<a name="flip--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flip</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;flip()</pre>
</li>
</ul>
<a name="rewind--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rewind</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;rewind()</pre>
</li>
</ul>
<a name="remaining--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remaining</h4>
<pre>public abstract&nbsp;int&nbsp;remaining()</pre>
</li>
</ul>
<a name="hasRemaining--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasRemaining</h4>
<pre>public abstract&nbsp;boolean&nbsp;hasRemaining()</pre>
</li>
</ul>
<a name="get--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;byte&nbsp;get()</pre>
</li>
</ul>
<a name="getUnsigned--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsigned</h4>
<pre>public abstract&nbsp;short&nbsp;getUnsigned()</pre>
</li>
</ul>
<a name="put-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(byte&nbsp;b)</pre>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;byte&nbsp;get(int&nbsp;index)</pre>
</li>
</ul>
<a name="getUnsigned-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsigned</h4>
<pre>public abstract&nbsp;short&nbsp;getUnsigned(int&nbsp;index)</pre>
</li>
</ul>
<a name="put-int-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(int&nbsp;index,
byte&nbsp;b)</pre>
</li>
</ul>
<a name="get-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;get(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</pre>
</li>
</ul>
<a name="get-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;get(byte[]&nbsp;dst)</pre>
</li>
</ul>
<a name="put-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(java.nio.ByteBuffer&nbsp;src)</pre>
</li>
</ul>
<a name="put-org.apache.mina.common.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;src)</pre>
</li>
</ul>
<a name="put-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</pre>
</li>
</ul>
<a name="put-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;put(byte[]&nbsp;src)</pre>
</li>
</ul>
<a name="compact--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compact</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;compact()</pre>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public abstract&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public abstract&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;ob)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="compareTo-org.apache.mina.common.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareTo</h4>
<pre>public abstract&nbsp;int&nbsp;compareTo(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;that)</pre>
</li>
</ul>
<a name="order--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>order</h4>
<pre>public abstract&nbsp;java.nio.ByteOrder&nbsp;order()</pre>
</li>
</ul>
<a name="order-java.nio.ByteOrder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>order</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;order(java.nio.ByteOrder&nbsp;bo)</pre>
</li>
</ul>
<a name="getChar--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChar</h4>
<pre>public abstract&nbsp;char&nbsp;getChar()</pre>
</li>
</ul>
<a name="putChar-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putChar</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putChar(char&nbsp;value)</pre>
</li>
</ul>
<a name="getChar-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChar</h4>
<pre>public abstract&nbsp;char&nbsp;getChar(int&nbsp;index)</pre>
</li>
</ul>
<a name="putChar-int-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putChar</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putChar(int&nbsp;index,
char&nbsp;value)</pre>
</li>
</ul>
<a name="asCharBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asCharBuffer</h4>
<pre>public abstract&nbsp;java.nio.CharBuffer&nbsp;asCharBuffer()</pre>
</li>
</ul>
<a name="getShort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public abstract&nbsp;short&nbsp;getShort()</pre>
</li>
</ul>
<a name="getUnsignedShort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsignedShort</h4>
<pre>public abstract&nbsp;int&nbsp;getUnsignedShort()</pre>
</li>
</ul>
<a name="putShort-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putShort(short&nbsp;value)</pre>
</li>
</ul>
<a name="getShort-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public abstract&nbsp;short&nbsp;getShort(int&nbsp;index)</pre>
</li>
</ul>
<a name="getUnsignedShort-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsignedShort</h4>
<pre>public abstract&nbsp;int&nbsp;getUnsignedShort(int&nbsp;index)</pre>
</li>
</ul>
<a name="putShort-int-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putShort(int&nbsp;index,
short&nbsp;value)</pre>
</li>
</ul>
<a name="asShortBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asShortBuffer</h4>
<pre>public abstract&nbsp;java.nio.ShortBuffer&nbsp;asShortBuffer()</pre>
</li>
</ul>
<a name="getInt--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public abstract&nbsp;int&nbsp;getInt()</pre>
</li>
</ul>
<a name="getUnsignedInt--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsignedInt</h4>
<pre>public abstract&nbsp;long&nbsp;getUnsignedInt()</pre>
</li>
</ul>
<a name="putInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putInt(int&nbsp;value)</pre>
</li>
</ul>
<a name="getInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public abstract&nbsp;int&nbsp;getInt(int&nbsp;index)</pre>
</li>
</ul>
<a name="getUnsignedInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsignedInt</h4>
<pre>public abstract&nbsp;long&nbsp;getUnsignedInt(int&nbsp;index)</pre>
</li>
</ul>
<a name="putInt-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putInt(int&nbsp;index,
int&nbsp;value)</pre>
</li>
</ul>
<a name="asIntBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asIntBuffer</h4>
<pre>public abstract&nbsp;java.nio.IntBuffer&nbsp;asIntBuffer()</pre>
</li>
</ul>
<a name="getLong--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public abstract&nbsp;long&nbsp;getLong()</pre>
</li>
</ul>
<a name="putLong-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putLong(long&nbsp;value)</pre>
</li>
</ul>
<a name="getLong-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public abstract&nbsp;long&nbsp;getLong(int&nbsp;index)</pre>
</li>
</ul>
<a name="putLong-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putLong(int&nbsp;index,
long&nbsp;value)</pre>
</li>
</ul>
<a name="asLongBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asLongBuffer</h4>
<pre>public abstract&nbsp;java.nio.LongBuffer&nbsp;asLongBuffer()</pre>
</li>
</ul>
<a name="getFloat--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public abstract&nbsp;float&nbsp;getFloat()</pre>
</li>
</ul>
<a name="putFloat-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putFloat</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putFloat(float&nbsp;value)</pre>
</li>
</ul>
<a name="getFloat-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public abstract&nbsp;float&nbsp;getFloat(int&nbsp;index)</pre>
</li>
</ul>
<a name="putFloat-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putFloat</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putFloat(int&nbsp;index,
float&nbsp;value)</pre>
</li>
</ul>
<a name="asFloatBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asFloatBuffer</h4>
<pre>public abstract&nbsp;java.nio.FloatBuffer&nbsp;asFloatBuffer()</pre>
</li>
</ul>
<a name="getDouble--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public abstract&nbsp;double&nbsp;getDouble()</pre>
</li>
</ul>
<a name="putDouble-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putDouble</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putDouble(double&nbsp;value)</pre>
</li>
</ul>
<a name="getDouble-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public abstract&nbsp;double&nbsp;getDouble(int&nbsp;index)</pre>
</li>
</ul>
<a name="putDouble-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putDouble</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putDouble(int&nbsp;index,
double&nbsp;value)</pre>
</li>
</ul>
<a name="asDoubleBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asDoubleBuffer</h4>
<pre>public abstract&nbsp;java.nio.DoubleBuffer&nbsp;asDoubleBuffer()</pre>
</li>
</ul>
<a name="getHexDump--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHexDump</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;getHexDump()</pre>
<div class="block">Returns hexdump of this buffer.</div>
</li>
</ul>
<a name="getString-java.nio.charset.CharsetDecoder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;getString(java.nio.charset.CharsetDecoder&nbsp;decoder)
throws java.nio.charset.CharacterCodingException</pre>
<div class="block">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.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.nio.charset.CharacterCodingException</code></dd>
</dl>
</li>
</ul>
<a name="getString-int-java.nio.charset.CharsetDecoder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;getString(int&nbsp;fieldSize,
java.nio.charset.CharsetDecoder&nbsp;decoder)
throws java.nio.charset.CharacterCodingException</pre>
<div class="block">Reads a <code>NUL</code>-terminated string from this buffer using the
specified <code>decoder</code> and returns it.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fieldSize</code> - the maximum number of bytes to read</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.nio.charset.CharacterCodingException</code></dd>
</dl>
</li>
</ul>
<a name="putString-java.lang.CharSequence-java.nio.charset.CharsetEncoder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putString</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putString(java.lang.CharSequence&nbsp;in,
java.nio.charset.CharsetEncoder&nbsp;encoder)
throws java.nio.charset.CharacterCodingException</pre>
<div class="block">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.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.nio.BufferOverflowException</code> - if the specified string doesn't fit</dd>
<dd><code>java.nio.charset.CharacterCodingException</code></dd>
</dl>
</li>
</ul>
<a name="putString-java.lang.CharSequence-int-java.nio.charset.CharsetEncoder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putString</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;putString(java.lang.CharSequence&nbsp;in,
int&nbsp;fieldSize,
java.nio.charset.CharsetEncoder&nbsp;encoder)
throws java.nio.charset.CharacterCodingException</pre>
<div class="block">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>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fieldSize</code> - the maximum number of bytes to write</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.nio.charset.CharacterCodingException</code></dd>
</dl>
</li>
</ul>
<a name="skip-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skip</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;skip(int&nbsp;size)</pre>
<div class="block">Forwards the position of this buffer as the specified <code>size</code>
bytes.</div>
</li>
</ul>
<a name="fill-byte-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;fill(byte&nbsp;value,
int&nbsp;size)</pre>
<div class="block">Fills this buffer with the specified value.
This method moves buffer position forward.</div>
</li>
</ul>
<a name="fillAndReset-byte-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillAndReset</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;fillAndReset(byte&nbsp;value,
int&nbsp;size)</pre>
<div class="block">Fills this buffer with the specified value.
This method does not change buffer position.</div>
</li>
</ul>
<a name="fill-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;fill(int&nbsp;size)</pre>
<div class="block">Fills this buffer with <code>NUL (0x00)</code>.
This method moves buffer position forward.</div>
</li>
</ul>
<a name="fillAndReset-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fillAndReset</h4>
<pre>public abstract&nbsp;<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>&nbsp;fillAndReset(int&nbsp;size)</pre>
<div class="block">Fills this buffer with <code>NUL (0x00)</code>.
This method does not change buffer position.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ByteBuffer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/mina/common/BaseSessionManager.html" title="class in org.apache.mina.common"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top">Frames</a></li>
<li><a href="ByteBuffer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>