| <!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 Sat Mar 16 10:17:08 CET 2019 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ByteBuffer (Apache MINA 1.1.6 API Documentation)</title> |
| <meta name="date" content="2019-03-16"> |
| <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 1.1.6 API Documentation)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":9,"i2":9,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":10,"i9":6,"i10":6,"i11":10,"i12":6,"i13":6,"i14":10,"i15":10,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":10,"i22":6,"i23":10,"i24":10,"i25":6,"i26":10,"i27":10,"i28":10,"i29":10,"i30":6,"i31":6,"i32":10,"i33":6,"i34":6,"i35":9,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":10,"i43":6,"i44":6,"i45":6,"i46":6,"i47":10,"i48":10,"i49":10,"i50":10,"i51":6,"i52":6,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":6,"i64":6,"i65":6,"i66":6,"i67":9,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":6,"i74":6,"i75":6,"i76":10,"i77":10,"i78":6,"i79":10,"i80":6,"i81":6,"i82":10,"i83":6,"i84":6,"i85":6,"i86":6,"i87":6,"i88":6,"i89":6,"i90":6,"i91":6,"i92":6,"i93":6,"i94":10,"i95":10,"i96":10,"i97":10,"i98":10,"i99":6,"i100":6,"i101":10,"i102":10,"i103":6,"i104":10,"i105":6,"i106":6,"i107":9,"i108":6,"i109":6,"i110":9,"i111":10,"i112":6,"i113":10,"i114":10,"i115":10,"i116":9,"i117":9,"i118":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/BufferDataException.html" title="class in org.apache.mina.common"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><span class="typeNameLink">Next 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 Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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>All Implemented Interfaces:</dt> |
| <dd>java.lang.Comparable<<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>></dd> |
| </dl> |
| <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 |
| implements java.lang.Comparable<<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>></pre> |
| <div class="block">A 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> |
| </p> |
| |
| <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> |
| </p> |
| |
| <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> |
| </p> |
| |
| <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. |
| </p> |
| |
| <h2>Derived Buffers</h2> |
| <p> |
| Derived buffers are the buffers which were created by |
| <a href="../../../../org/apache/mina/common/ByteBuffer.html#duplicate--"><code>duplicate()</code></a>, <a href="../../../../org/apache/mina/common/ByteBuffer.html#slice--"><code>slice()</code></a>, or <a href="../../../../org/apache/mina/common/ByteBuffer.html#asReadOnlyBuffer--"><code>asReadOnlyBuffer()</code></a>. |
| They are useful especially when you broadcast the same messages to |
| multiple <a href="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common"><code>IoSession</code></a>s. Please note that the derived buffers are |
| neither pooled nor auto-expandable. Trying to expand a derived buffer will |
| raise <code>IllegalStateException</code>. |
| </p> |
| |
| <h2>Changing Buffer Allocation and Management Policy</h2> |
| <p> |
| MINA provides a <a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><code>ByteBufferAllocator</code></a> interface to let you override |
| the default buffer management behavior. There are two allocators provided |
| out-of-the-box: |
| <ul> |
| <li><a href="../../../../org/apache/mina/common/PooledByteBufferAllocator.html" title="class in org.apache.mina.common"><code>PooledByteBufferAllocator</code></a> (Default)</li> |
| <li><a href="../../../../org/apache/mina/common/SimpleByteBufferAllocator.html" title="class in org.apache.mina.common"><code>SimpleByteBufferAllocator</code></a></li> |
| </ul> |
| You can change the allocator by calling <a href="../../../../org/apache/mina/common/ByteBuffer.html#setAllocator-org.apache.mina.common.ByteBufferAllocator-"><code>setAllocator(ByteBufferAllocator)</code></a>. |
| </p></div> |
| <dl> |
| <dt><span class="simpleTagLabel">Version:</span></dt> |
| <dd>$Rev: 601962 $, $Date: 2007-12-07 03:45:54 +0100 (Fri, 07 Dec 2007) $</dd> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd>The Apache Directory Project (mina-dev@directory.apache.org)</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><code>ByteBufferAllocator</code></a></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"> </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> </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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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 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 capacity, |
| boolean 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 byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#array--">array</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" 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#arrayOffset--">arrayOffset</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" 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> </td> |
| </tr> |
| <tr id="i6" 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> </td> |
| </tr> |
| <tr id="i7" 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> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.io.InputStream</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asInputStream--">asInputStream</a></span>()</code> |
| <div class="block">Returns an <code>InputStream</code> that reads the data from this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <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> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <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> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>java.io.OutputStream</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#asOutputStream--">asOutputStream</a></span>()</code> |
| <div class="block">Returns an <code>OutputStream</code> that appends the data into this buffer.</div> |
| </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#asReadOnlyBuffer--">asReadOnlyBuffer</a></span>()</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <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> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>protected <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#autoExpand-int-">autoExpand</a></span>(int expectedRemaining)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>protected <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#autoExpand-int-int-">autoExpand</a></span>(int pos, |
| int expectedRemaining)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <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="i17" 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#capacity--">capacity</a></span>()</code> </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#capacity-int-">capacity</a></span>(int newCapacity)</code> |
| <div class="block">Changes the capacity of this buffer.</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#clear--">clear</a></span>()</code> </td> |
| </tr> |
| <tr id="i20" 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> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>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> that)</code> </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#duplicate--">duplicate</a></span>()</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>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 o)</code> </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code><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#expand-int-">expand</a></span>(int expectedRemaining)</code> |
| <div class="block">Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the current position.</div> |
| </td> |
| </tr> |
| <tr id="i25" 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#expand-int-int-">expand</a></span>(int pos, |
| int expectedRemaining)</code> |
| <div class="block">Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the specified |
| <tt>pos</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code><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 value, |
| int size)</code> |
| <div class="block">Fills this buffer with the specified value.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code><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 size)</code> |
| <div class="block">Fills this buffer with <code>NUL (0x00)</code>.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code><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 value, |
| int size)</code> |
| <div class="block">Fills this buffer with the specified value.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code><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 size)</code> |
| <div class="block">Fills this buffer with <code>NUL (0x00)</code>.</div> |
| </td> |
| </tr> |
| <tr id="i30" 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#flip--">flip</a></span>()</code> </td> |
| </tr> |
| <tr id="i31" 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--">get</a></span>()</code> </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code><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[] dst)</code> </td> |
| </tr> |
| <tr id="i33" 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-int-int-">get</a></span>(byte[] dst, |
| int offset, |
| int length)</code> </td> |
| </tr> |
| <tr id="i34" 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-int-">get</a></span>(int index)</code> </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getAllocator--">getAllocator</a></span>()</code> |
| <div class="block">Returns the current allocator which manages the allocated buffers.</div> |
| </td> |
| </tr> |
| <tr id="i36" 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> </td> |
| </tr> |
| <tr id="i37" 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 index)</code> </td> |
| </tr> |
| <tr id="i38" 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> </td> |
| </tr> |
| <tr id="i39" 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 index)</code> </td> |
| </tr> |
| <tr id="i40" 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> </td> |
| </tr> |
| <tr id="i41" 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 index)</code> </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code>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="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#getInt--">getInt</a></span>()</code> </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#getInt-int-">getInt</a></span>(int index)</code> </td> |
| </tr> |
| <tr id="i45" 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> </td> |
| </tr> |
| <tr id="i46" 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 index)</code> </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Object</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getObject--">getObject</a></span>()</code> |
| <div class="block">Reads a Java object from the buffer using the context <code>ClassLoader</code> |
| of the current thread.</div> |
| </td> |
| </tr> |
| <tr id="i48" class="altColor"> |
| <td class="colFirst"><code>java.lang.Object</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getObject-java.lang.ClassLoader-">getObject</a></span>(java.lang.ClassLoader classLoader)</code> |
| <div class="block">Reads a Java object from the buffer using the specified <tt>classLoader</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i49" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString-java.nio.charset.CharsetDecoder-">getPrefixedString</a></span>(java.nio.charset.CharsetDecoder decoder)</code> |
| <div class="block">Reads a string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it.</div> |
| </td> |
| </tr> |
| <tr id="i50" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString-int-java.nio.charset.CharsetDecoder-">getPrefixedString</a></span>(int prefixLength, |
| java.nio.charset.CharsetDecoder decoder)</code> |
| <div class="block">Reads a string which has a length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it.</div> |
| </td> |
| </tr> |
| <tr id="i51" 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> </td> |
| </tr> |
| <tr id="i52" 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 index)</code> </td> |
| </tr> |
| <tr id="i53" class="rowColor"> |
| <td class="colFirst"><code>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 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="i54" class="altColor"> |
| <td class="colFirst"><code>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 fieldSize, |
| java.nio.charset.CharsetDecoder 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="i55" class="rowColor"> |
| <td class="colFirst"><code>short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned--">getUnsigned</a></span>()</code> |
| <div class="block">Reads one unsigned byte as a short integer.</div> |
| </td> |
| </tr> |
| <tr id="i56" class="altColor"> |
| <td class="colFirst"><code>short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned-int-">getUnsigned</a></span>(int index)</code> |
| <div class="block">Reads one byte as an unsigned short integer.</div> |
| </td> |
| </tr> |
| <tr id="i57" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt--">getUnsignedInt</a></span>()</code> |
| <div class="block">Reads four bytes unsigned integer.</div> |
| </td> |
| </tr> |
| <tr id="i58" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt-int-">getUnsignedInt</a></span>(int index)</code> |
| <div class="block">Reads four bytes unsigned integer.</div> |
| </td> |
| </tr> |
| <tr id="i59" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort--">getUnsignedShort</a></span>()</code> |
| <div class="block">Reads two bytes unsigned integer.</div> |
| </td> |
| </tr> |
| <tr id="i60" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort-int-">getUnsignedShort</a></span>(int index)</code> |
| <div class="block">Reads two bytes unsigned integer.</div> |
| </td> |
| </tr> |
| <tr id="i61" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#hashCode--">hashCode</a></span>()</code> </td> |
| </tr> |
| <tr id="i62" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#hasRemaining--">hasRemaining</a></span>()</code> </td> |
| </tr> |
| <tr id="i63" 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="i64" 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> </td> |
| </tr> |
| <tr id="i65" 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="i66" 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#isReadOnly--">isReadOnly</a></span>()</code> </td> |
| </tr> |
| <tr id="i67" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#isUseDirectBuffers--">isUseDirectBuffers</a></span>()</code> </td> |
| </tr> |
| <tr id="i68" 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> </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#limit-int-">limit</a></span>(int newLimit)</code> </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#mark--">mark</a></span>()</code> </td> |
| </tr> |
| <tr id="i71" 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#markValue--">markValue</a></span>()</code> |
| <div class="block">Returns the position of the current mark.</div> |
| </td> |
| </tr> |
| <tr id="i72" class="altColor"> |
| <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> </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#order-java.nio.ByteOrder-">order</a></span>(java.nio.ByteOrder bo)</code> </td> |
| </tr> |
| <tr id="i74" 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#position--">position</a></span>()</code> </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#position-int-">position</a></span>(int newPosition)</code> </td> |
| </tr> |
| <tr id="i76" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable-int-">prefixedDataAvailable</a></span>(int prefixLength)</code> |
| <div class="block">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.</div> |
| </td> |
| </tr> |
| <tr id="i77" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable-int-int-">prefixedDataAvailable</a></span>(int prefixLength, |
| int maxDataLength)</code> |
| <div class="block">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.</div> |
| </td> |
| </tr> |
| <tr id="i78" 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-">put</a></span>(byte b)</code> </td> |
| </tr> |
| <tr id="i79" class="rowColor"> |
| <td class="colFirst"><code><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[] src)</code> </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#put-byte:A-int-int-">put</a></span>(byte[] src, |
| int offset, |
| int length)</code> </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#put-java.nio.ByteBuffer-">put</a></span>(java.nio.ByteBuffer src)</code> |
| <div class="block">Writes the content of the specified <tt>src</tt> into this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i82" class="altColor"> |
| <td class="colFirst"><code><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> src)</code> |
| <div class="block">Writes the content of the specified <tt>src</tt> into this buffer.</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#put-int-byte-">put</a></span>(int index, |
| byte b)</code> </td> |
| </tr> |
| <tr id="i84" 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-char-">putChar</a></span>(char value)</code> </td> |
| </tr> |
| <tr id="i85" 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-int-char-">putChar</a></span>(int index, |
| char value)</code> </td> |
| </tr> |
| <tr id="i86" 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-double-">putDouble</a></span>(double value)</code> </td> |
| </tr> |
| <tr id="i87" 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-int-double-">putDouble</a></span>(int index, |
| double value)</code> </td> |
| </tr> |
| <tr id="i88" 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-float-">putFloat</a></span>(float value)</code> </td> |
| </tr> |
| <tr id="i89" 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-int-float-">putFloat</a></span>(int index, |
| float value)</code> </td> |
| </tr> |
| <tr id="i90" 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-">putInt</a></span>(int value)</code> </td> |
| </tr> |
| <tr id="i91" 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-int-">putInt</a></span>(int index, |
| int value)</code> </td> |
| </tr> |
| <tr id="i92" 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-int-long-">putLong</a></span>(int index, |
| long value)</code> </td> |
| </tr> |
| <tr id="i93" 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-long-">putLong</a></span>(long value)</code> </td> |
| </tr> |
| <tr id="i94" class="altColor"> |
| <td class="colFirst"><code><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#putObject-java.lang.Object-">putObject</a></span>(java.lang.Object o)</code> |
| <div class="block">Writes the specified Java object to the buffer.</div> |
| </td> |
| </tr> |
| <tr id="i95" class="rowColor"> |
| <td class="colFirst"><code><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#putPrefixedString-java.lang.CharSequence-java.nio.charset.CharsetEncoder-">putPrefixedString</a></span>(java.lang.CharSequence in, |
| java.nio.charset.CharsetEncoder encoder)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i96" class="altColor"> |
| <td class="colFirst"><code><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#putPrefixedString-java.lang.CharSequence-int-java.nio.charset.CharsetEncoder-">putPrefixedString</a></span>(java.lang.CharSequence in, |
| int prefixLength, |
| java.nio.charset.CharsetEncoder encoder)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i97" class="rowColor"> |
| <td class="colFirst"><code><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#putPrefixedString-java.lang.CharSequence-int-int-byte-java.nio.charset.CharsetEncoder-">putPrefixedString</a></span>(java.lang.CharSequence val, |
| int prefixLength, |
| int padding, |
| byte padValue, |
| java.nio.charset.CharsetEncoder encoder)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i98" class="altColor"> |
| <td class="colFirst"><code><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#putPrefixedString-java.lang.CharSequence-int-int-java.nio.charset.CharsetEncoder-">putPrefixedString</a></span>(java.lang.CharSequence in, |
| int prefixLength, |
| int padding, |
| java.nio.charset.CharsetEncoder encoder)</code> |
| <div class="block">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>.</div> |
| </td> |
| </tr> |
| <tr id="i99" 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 index, |
| short value)</code> </td> |
| </tr> |
| <tr id="i100" 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 value)</code> </td> |
| </tr> |
| <tr id="i101" class="rowColor"> |
| <td class="colFirst"><code><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 val, |
| java.nio.charset.CharsetEncoder 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="i102" class="altColor"> |
| <td class="colFirst"><code><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 val, |
| int fieldSize, |
| java.nio.charset.CharsetEncoder 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="i103" 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="i104" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#remaining--">remaining</a></span>()</code> </td> |
| </tr> |
| <tr id="i105" 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> </td> |
| </tr> |
| <tr id="i106" 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> </td> |
| </tr> |
| <tr id="i107" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#setAllocator-org.apache.mina.common.ByteBufferAllocator-">setAllocator</a></span>(<a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</a> newAllocator)</code> |
| <div class="block">Changes the current allocator with the specified one to manage |
| the allocated buffers from now.</div> |
| </td> |
| </tr> |
| <tr id="i108" 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#setAutoExpand-boolean-">setAutoExpand</a></span>(boolean autoExpand)</code> |
| <div class="block">Turns on or off <tt>autoExpand</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i109" 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#setPooled-boolean-">setPooled</a></span>(boolean pooled)</code> |
| <div class="block">Sets whether this buffer is returned back to the buffer pool when released.</div> |
| </td> |
| </tr> |
| <tr id="i110" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/common/ByteBuffer.html#setUseDirectBuffers-boolean-">setUseDirectBuffers</a></span>(boolean useDirectBuffers)</code> </td> |
| </tr> |
| <tr id="i111" class="rowColor"> |
| <td class="colFirst"><code><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 size)</code> |
| <div class="block">Forwards the position of this buffer as the specified <code>size</code> |
| bytes.</div> |
| </td> |
| </tr> |
| <tr id="i112" 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#slice--">slice</a></span>()</code> </td> |
| </tr> |
| <tr id="i113" class="rowColor"> |
| <td class="colFirst"><code><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#sweep--">sweep</a></span>()</code> |
| <div class="block">Clears this buffer and fills its content with <tt>NUL</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i114" class="altColor"> |
| <td class="colFirst"><code><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#sweep-byte-">sweep</a></span>(byte value)</code> |
| <div class="block">Clears this buffer and fills its content with <tt>value</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i115" class="rowColor"> |
| <td class="colFirst"><code>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> </td> |
| </tr> |
| <tr id="i116" 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-">wrap</a></span>(byte[] byteArray)</code> |
| <div class="block">Wraps the specified byte array into MINA heap buffer.</div> |
| </td> |
| </tr> |
| <tr id="i117" 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-int-int-">wrap</a></span>(byte[] byteArray, |
| int offset, |
| int length)</code> |
| <div class="block">Wraps the specified byte array into MINA heap buffer.</div> |
| </td> |
| </tr> |
| <tr id="i118" 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-java.nio.ByteBuffer-">wrap</a></span>(java.nio.ByteBuffer 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 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 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="getAllocator--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAllocator</h4> |
| <pre>public static <a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</a> getAllocator()</pre> |
| <div class="block">Returns the current allocator which manages the allocated buffers.</div> |
| </li> |
| </ul> |
| <a name="setAllocator-org.apache.mina.common.ByteBufferAllocator-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAllocator</h4> |
| <pre>public static void setAllocator(<a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</a> newAllocator)</pre> |
| <div class="block">Changes the current allocator with the specified one to manage |
| the allocated buffers from now.</div> |
| </li> |
| </ul> |
| <a name="isUseDirectBuffers--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isUseDirectBuffers</h4> |
| <pre>public static boolean isUseDirectBuffers()</pre> |
| </li> |
| </ul> |
| <a name="setUseDirectBuffers-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUseDirectBuffers</h4> |
| <pre>public static void setUseDirectBuffers(boolean useDirectBuffers)</pre> |
| </li> |
| </ul> |
| <a name="allocate-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>allocate</h4> |
| <pre>public static <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> allocate(int 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> allocate(int capacity, |
| boolean 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> wrap(java.nio.ByteBuffer 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> wrap(byte[] 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> wrap(byte[] byteArray, |
| int offset, |
| int 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 void 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 void 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 java.nio.ByteBuffer 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 boolean isDirect()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.isDirect()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isReadOnly--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isReadOnly</h4> |
| <pre>public abstract boolean isReadOnly()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.isReadOnly()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="capacity--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>capacity</h4> |
| <pre>public abstract int capacity()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.capacity()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="capacity-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>capacity</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> capacity(int newCapacity)</pre> |
| <div class="block">Changes the capacity of this buffer.</div> |
| </li> |
| </ul> |
| <a name="isAutoExpand--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAutoExpand</h4> |
| <pre>public abstract boolean 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> setAutoExpand(boolean autoExpand)</pre> |
| <div class="block">Turns on or off <tt>autoExpand</tt>.</div> |
| </li> |
| </ul> |
| <a name="expand-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>expand</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> expand(int expectedRemaining)</pre> |
| <div class="block">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>.</div> |
| </li> |
| </ul> |
| <a name="expand-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>expand</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> expand(int pos, |
| int expectedRemaining)</pre> |
| <div class="block">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>.</div> |
| </li> |
| </ul> |
| <a name="isPooled--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPooled</h4> |
| <pre>public abstract boolean 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 void setPooled(boolean 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 int position()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.position()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="position-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>position</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> position(int newPosition)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.position(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="limit--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limit</h4> |
| <pre>public abstract int limit()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.limit()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="limit-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limit</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> limit(int newLimit)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.limit(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="mark--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mark</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> mark()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.mark()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="markValue--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>markValue</h4> |
| <pre>public abstract int markValue()</pre> |
| <div class="block">Returns the position of the current mark. This method returns <tt>-1</tt> if no |
| mark is set.</div> |
| </li> |
| </ul> |
| <a name="reset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> reset()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.reset()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="clear--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clear</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> clear()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.clear()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="sweep--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sweep</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> sweep()</pre> |
| <div class="block">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.</div> |
| </li> |
| </ul> |
| <a name="sweep-byte-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sweep</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> sweep(byte value)</pre> |
| <div class="block">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.</div> |
| </li> |
| </ul> |
| <a name="flip--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>flip</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> flip()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.flip()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="rewind--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rewind</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> rewind()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.rewind()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="remaining--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>remaining</h4> |
| <pre>public int remaining()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.remaining()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hasRemaining--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasRemaining</h4> |
| <pre>public boolean hasRemaining()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Buffer.hasRemaining()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="duplicate--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>duplicate</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> duplicate()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.duplicate()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="slice--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>slice</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> slice()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.slice()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asReadOnlyBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asReadOnlyBuffer</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> asReadOnlyBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asReadOnlyBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="array--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>array</h4> |
| <pre>public abstract byte[] array()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.array()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="arrayOffset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>arrayOffset</h4> |
| <pre>public abstract int arrayOffset()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.arrayOffset()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public abstract byte get()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.get()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsigned--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsigned</h4> |
| <pre>public short getUnsigned()</pre> |
| <div class="block">Reads one unsigned byte as a short integer.</div> |
| </li> |
| </ul> |
| <a name="put-byte-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(byte b)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.put(byte)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public abstract byte get(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.get(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsigned-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsigned</h4> |
| <pre>public short getUnsigned(int index)</pre> |
| <div class="block">Reads one byte as an unsigned short integer.</div> |
| </li> |
| </ul> |
| <a name="put-int-byte-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(int index, |
| byte b)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.put(int, byte)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> get(byte[] dst, |
| int offset, |
| int length)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.get(byte[], int, int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> get(byte[] dst)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.get(byte[])</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-java.nio.ByteBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(java.nio.ByteBuffer src)</pre> |
| <div class="block">Writes the content of the specified <tt>src</tt> into this buffer.</div> |
| </li> |
| </ul> |
| <a name="put-org.apache.mina.common.ByteBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> src)</pre> |
| <div class="block">Writes the content of the specified <tt>src</tt> into this buffer.</div> |
| </li> |
| </ul> |
| <a name="put-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(byte[] src, |
| int offset, |
| int length)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.put(byte[], int, int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> put(byte[] src)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.put(byte[])</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="compact--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>compact</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> compact()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.compact()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public java.lang.String toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>toString</code> in class <code>java.lang.Object</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int hashCode()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>hashCode</code> in class <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 boolean equals(java.lang.Object o)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>equals</code> in class <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 int compareTo(<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> that)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>compareTo</code> in interface <code>java.lang.Comparable<<a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a>></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="order--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>order</h4> |
| <pre>public abstract java.nio.ByteOrder order()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.order()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="order-java.nio.ByteOrder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>order</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> order(java.nio.ByteOrder bo)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.order(ByteOrder)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getChar--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getChar</h4> |
| <pre>public abstract char getChar()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getChar()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putChar-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putChar</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putChar(char value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putChar(char)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getChar-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getChar</h4> |
| <pre>public abstract char getChar(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getChar(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putChar-int-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putChar</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putChar(int index, |
| char value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putChar(int, char)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asCharBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asCharBuffer</h4> |
| <pre>public abstract java.nio.CharBuffer asCharBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asCharBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShort--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShort</h4> |
| <pre>public abstract short getShort()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getShort()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsignedShort--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsignedShort</h4> |
| <pre>public int getUnsignedShort()</pre> |
| <div class="block">Reads two bytes unsigned integer.</div> |
| </li> |
| </ul> |
| <a name="putShort-short-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putShort</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putShort(short value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putShort(short)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShort-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShort</h4> |
| <pre>public abstract short getShort(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getShort()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsignedShort-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsignedShort</h4> |
| <pre>public int getUnsignedShort(int index)</pre> |
| <div class="block">Reads two bytes unsigned integer.</div> |
| </li> |
| </ul> |
| <a name="putShort-int-short-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putShort</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putShort(int index, |
| short value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putShort(int, short)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asShortBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asShortBuffer</h4> |
| <pre>public abstract java.nio.ShortBuffer asShortBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asShortBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInt--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInt</h4> |
| <pre>public abstract int getInt()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getInt()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsignedInt--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsignedInt</h4> |
| <pre>public long getUnsignedInt()</pre> |
| <div class="block">Reads four bytes unsigned integer.</div> |
| </li> |
| </ul> |
| <a name="putInt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putInt</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putInt(int value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putInt(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInt</h4> |
| <pre>public abstract int getInt(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getInt(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnsignedInt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnsignedInt</h4> |
| <pre>public long getUnsignedInt(int index)</pre> |
| <div class="block">Reads four bytes unsigned integer.</div> |
| </li> |
| </ul> |
| <a name="putInt-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putInt</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putInt(int index, |
| int value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putInt(int, int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asIntBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asIntBuffer</h4> |
| <pre>public abstract java.nio.IntBuffer asIntBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asIntBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLong--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre>public abstract long getLong()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getLong()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putLong-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putLong</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putLong(long value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putLong(int, long)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLong-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre>public abstract long getLong(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getLong(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putLong-int-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putLong</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putLong(int index, |
| long value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putLong(int, long)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asLongBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asLongBuffer</h4> |
| <pre>public abstract java.nio.LongBuffer asLongBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asLongBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFloat--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFloat</h4> |
| <pre>public abstract float getFloat()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getFloat()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putFloat-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putFloat</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putFloat(float value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putFloat(float)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFloat-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFloat</h4> |
| <pre>public abstract float getFloat(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getFloat(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putFloat-int-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putFloat</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putFloat(int index, |
| float value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putFloat(int, float)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asFloatBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asFloatBuffer</h4> |
| <pre>public abstract java.nio.FloatBuffer asFloatBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asFloatBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDouble--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDouble</h4> |
| <pre>public abstract double getDouble()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getDouble()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putDouble-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putDouble</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putDouble(double value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putDouble(double)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDouble-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDouble</h4> |
| <pre>public abstract double getDouble(int index)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.getDouble(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putDouble-int-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putDouble</h4> |
| <pre>public abstract <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putDouble(int index, |
| double value)</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.putDouble(int, double)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asDoubleBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asDoubleBuffer</h4> |
| <pre>public abstract java.nio.DoubleBuffer asDoubleBuffer()</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ByteBuffer.asDoubleBuffer()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asInputStream--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asInputStream</h4> |
| <pre>public java.io.InputStream asInputStream()</pre> |
| <div class="block">Returns an <code>InputStream</code> that reads the data from this buffer. |
| <code>InputStream.read()</code> returns <tt>-1</tt> if the buffer position |
| reaches to the limit.</div> |
| </li> |
| </ul> |
| <a name="asOutputStream--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asOutputStream</h4> |
| <pre>public java.io.OutputStream asOutputStream()</pre> |
| <div class="block">Returns an <code>OutputStream</code> that appends the data into this buffer. |
| Please note that the <code>OutputStream.write(int)</code> will throw a |
| <code>BufferOverflowException</code> instead of an <code>IOException</code> |
| 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.</div> |
| </li> |
| </ul> |
| <a name="getHexDump--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHexDump</h4> |
| <pre>public java.lang.String 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 java.lang.String getString(java.nio.charset.CharsetDecoder 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 java.lang.String getString(int fieldSize, |
| java.nio.charset.CharsetDecoder 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putString(java.lang.CharSequence val, |
| java.nio.charset.CharsetEncoder 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putString(java.lang.CharSequence val, |
| int fieldSize, |
| java.nio.charset.CharsetEncoder 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="getPrefixedString-java.nio.charset.CharsetDecoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPrefixedString</h4> |
| <pre>public java.lang.String getPrefixedString(java.nio.charset.CharsetDecoder decoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">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>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.nio.charset.CharacterCodingException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPrefixedString-int-java.nio.charset.CharsetDecoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPrefixedString</h4> |
| <pre>public java.lang.String getPrefixedString(int prefixLength, |
| java.nio.charset.CharsetDecoder decoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">Reads a string which has a length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the length field (1, 2, or 4)</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.nio.charset.CharacterCodingException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putPrefixedString-java.lang.CharSequence-java.nio.charset.CharsetEncoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putPrefixedString</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putPrefixedString(java.lang.CharSequence in, |
| java.nio.charset.CharsetEncoder encoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">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>.</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="putPrefixedString-java.lang.CharSequence-int-java.nio.charset.CharsetEncoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putPrefixedString</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putPrefixedString(java.lang.CharSequence in, |
| int prefixLength, |
| java.nio.charset.CharsetEncoder encoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">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>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the length field (1, 2, or 4)</dd> |
| <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="putPrefixedString-java.lang.CharSequence-int-int-java.nio.charset.CharsetEncoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putPrefixedString</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putPrefixedString(java.lang.CharSequence in, |
| int prefixLength, |
| int padding, |
| java.nio.charset.CharsetEncoder encoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">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>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the length field (1, 2, or 4)</dd> |
| <dd><code>padding</code> - the number of padded <tt>NUL</tt>s (1 (or 0), 2, or 4)</dd> |
| <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="putPrefixedString-java.lang.CharSequence-int-int-byte-java.nio.charset.CharsetEncoder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putPrefixedString</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putPrefixedString(java.lang.CharSequence val, |
| int prefixLength, |
| int padding, |
| byte padValue, |
| java.nio.charset.CharsetEncoder encoder) |
| throws java.nio.charset.CharacterCodingException</pre> |
| <div class="block">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>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the length field (1, 2, or 4)</dd> |
| <dd><code>padding</code> - the number of padded bytes (1 (or 0), 2, or 4)</dd> |
| <dd><code>padValue</code> - the value of padded bytes</dd> |
| <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="getObject--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObject</h4> |
| <pre>public java.lang.Object getObject() |
| throws java.lang.ClassNotFoundException</pre> |
| <div class="block">Reads a Java object from the buffer using the context <code>ClassLoader</code> |
| of the current thread.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.ClassNotFoundException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObject-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObject</h4> |
| <pre>public java.lang.Object getObject(java.lang.ClassLoader classLoader) |
| throws java.lang.ClassNotFoundException</pre> |
| <div class="block">Reads a Java object from the buffer using the specified <tt>classLoader</tt>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.ClassNotFoundException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putObject-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putObject</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> putObject(java.lang.Object o)</pre> |
| <div class="block">Writes the specified Java object to the buffer.</div> |
| </li> |
| </ul> |
| <a name="prefixedDataAvailable-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>prefixedDataAvailable</h4> |
| <pre>public boolean prefixedDataAvailable(int prefixLength)</pre> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the prefix field (1, 2, or 4)</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if prefixLength is wrong</dd> |
| <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</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="prefixedDataAvailable-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>prefixedDataAvailable</h4> |
| <pre>public boolean prefixedDataAvailable(int prefixLength, |
| int maxDataLength)</pre> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prefixLength</code> - the length of the prefix field (1, 2, or 4)</dd> |
| <dd><code>maxDataLength</code> - the allowed maximum of the read data length</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if prefixLength is wrong</dd> |
| <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></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="skip-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>skip</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> skip(int 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> fill(byte value, |
| int 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> fillAndReset(byte value, |
| int 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 <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> fill(int 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="blockList"> |
| <li class="blockList"> |
| <h4>fillAndReset</h4> |
| <pre>public <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> fillAndReset(int size)</pre> |
| <div class="block">Fills this buffer with <code>NUL (0x00)</code>. |
| This method does not change buffer position.</div> |
| </li> |
| </ul> |
| <a name="autoExpand-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>autoExpand</h4> |
| <pre>protected <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> autoExpand(int expectedRemaining)</pre> |
| <div class="block">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>.</div> |
| </li> |
| </ul> |
| <a name="autoExpand-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>autoExpand</h4> |
| <pre>protected <a href="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</a> autoExpand(int pos, |
| int expectedRemaining)</pre> |
| <div class="block">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>.</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/BufferDataException.html" title="class in org.apache.mina.common"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><span class="typeNameLink">Next 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 Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2004-2019 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |