| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_08) on Mon Oct 02 11:45:13 GMT+09:00 2006 --> |
| <TITLE> |
| ByteBuffer (Apache MINA API Documentation) |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.apache.mina.common.ByteBuffer class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="ByteBuffer (Apache MINA API Documentation)"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="ByteBuffer.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.mina.common</FONT> |
| <BR> |
| Class ByteBuffer</H2> |
| <PRE> |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.mina.common.ByteBuffer</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></DD> |
| </DL> |
| <DL> |
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/mina/common/ByteBufferProxy.html" title="class in org.apache.mina.common">ByteBufferProxy</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public abstract class <B>ByteBuffer</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></DL> |
| </PRE> |
| |
| <P> |
| A byte buffer used by MINA applications. |
| <p> |
| This is a replacement for <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A>. Please refer to |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> and <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html" title="class or interface in java.nio"><CODE>Buffer</CODE></A> documentation for |
| usage. MINA does not use NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> directly for two |
| reasons: |
| <ul> |
| <li>It doesn't provide useful getters and putters such as |
| <code>fill</code>, <code>get/putString</code>, and |
| <code>get/putAsciiInt()</code> enough.</li> |
| <li>It is hard to distinguish if the buffer is created from MINA buffer |
| pool or not. MINA have to return used buffers back to pool.</li> |
| <li>It is difficult to write variable-length data due to its fixed |
| capacity</li> |
| </ul> |
| </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 <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio"><CODE>BufferOverflowException</CODE></A> or |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang"><CODE>IndexOutOfBoundsException</CODE></A> (except when index is negative). |
| It automatically expands its capacity and limit value. For example: |
| <pre> |
| String greeting = messageBundle.getMessage( "hello" ); |
| ByteBuffer buf = ByteBuffer.allocate( 16 ); |
| // Turn on autoExpand (it is off by default) |
| buf.setAutoExpand( true ); |
| buf.putString( greeting, utf8encoder ); |
| </pre> |
| NIO <tt>ByteBuffer</tt> is reallocated by MINA <tt>ByteBuffer</tt> behind |
| the scene if the encoded data is larger than 16 bytes. Its capacity will |
| increase by two times, and its limit will increase to the last position |
| the string is written. |
| </p> |
| |
| <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 <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang"><CODE>IllegalStateException</CODE></A>. |
| </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> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Version:</B></DT> |
| <DD>$Rev: 451854 $, $Date: 2006-10-02 11:30:11 +0900 (ì›”, 02 10ì›” 2006) $</DD> |
| <DT><B>Author:</B></DT> |
| <DD>The Apache Directory Project (mina-dev@directory.apache.org)</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><CODE>ByteBufferAllocator</CODE></A></DL> |
| <HR> |
| |
| <P> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#ByteBuffer()">ByteBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#acquire()">acquire</A></B>()</CODE> |
| |
| <BR> |
| Increases the internal reference count of this buffer to defer |
| automatic release.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)">allocate</A></B>(int capacity)</CODE> |
| |
| <BR> |
| Returns the direct or heap buffer which is capable of the specified |
| size.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)">allocate</A></B>(int capacity, |
| boolean direct)</CODE> |
| |
| <BR> |
| Returns the buffer which is capable of the specified size.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#array()">array</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#arrayOffset()">arrayOffset</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/CharBuffer.html" title="class or interface in java.nio">CharBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asCharBuffer()">asCharBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/DoubleBuffer.html" title="class or interface in java.nio">DoubleBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asDoubleBuffer()">asDoubleBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/FloatBuffer.html" title="class or interface in java.nio">FloatBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asFloatBuffer()">asFloatBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asInputStream()">asInputStream</A></B>()</CODE> |
| |
| <BR> |
| Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io"><CODE>InputStream</CODE></A> that reads the data from this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/IntBuffer.html" title="class or interface in java.nio">IntBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asIntBuffer()">asIntBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/LongBuffer.html" title="class or interface in java.nio">LongBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asLongBuffer()">asLongBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asOutputStream()">asOutputStream</A></B>()</CODE> |
| |
| <BR> |
| Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io"><CODE>OutputStream</CODE></A> that appends the data into this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asReadOnlyBuffer()">asReadOnlyBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ShortBuffer.html" title="class or interface in java.nio">ShortBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#asShortBuffer()">asShortBuffer</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#autoExpand(int)">autoExpand</A></B>(int expectedRemaining)</CODE> |
| |
| <BR> |
| This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when |
| <tt>autoExpand</tt> property is <tt>true</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#autoExpand(int, int)">autoExpand</A></B>(int pos, |
| int expectedRemaining)</CODE> |
| |
| <BR> |
| This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when |
| <tt>autoExpand</tt> property is <tt>true</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#buf()">buf</A></B>()</CODE> |
| |
| <BR> |
| Returns the underlying NIO buffer instance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#capacity()">capacity</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#capacity(int)">capacity</A></B>(int newCapacity)</CODE> |
| |
| <BR> |
| Changes the capacity of this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#clear()">clear</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#compact()">compact</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#compareTo(java.lang.Object)">compareTo</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#duplicate()">duplicate</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)">expand</A></B>(int expectedRemaining)</CODE> |
| |
| <BR> |
| Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the current position.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int, int)">expand</A></B>(int pos, |
| int expectedRemaining)</CODE> |
| |
| <BR> |
| Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the specified |
| <tt>pos</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fill(byte, int)">fill</A></B>(byte value, |
| int size)</CODE> |
| |
| <BR> |
| Fills this buffer with the specified value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fill(int)">fill</A></B>(int size)</CODE> |
| |
| <BR> |
| Fills this buffer with <code>NUL (0x00)</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset(byte, int)">fillAndReset</A></B>(byte value, |
| int size)</CODE> |
| |
| <BR> |
| Fills this buffer with the specified value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#fillAndReset(int)">fillAndReset</A></B>(int size)</CODE> |
| |
| <BR> |
| Fills this buffer with <code>NUL (0x00)</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#flip()">flip</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get()">get</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(byte[])">get</A></B>(byte[] dst)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(byte[], int, int)">get</A></B>(byte[] dst, |
| int offset, |
| int length)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#get(int)">get</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getAllocator()">getAllocator</A></B>()</CODE> |
| |
| <BR> |
| Returns the current allocator which manages the allocated buffers.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract char</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getChar()">getChar</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract char</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getChar(int)">getChar</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getDouble()">getDouble</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getDouble(int)">getDouble</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getFloat()">getFloat</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getFloat(int)">getFloat</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getHexDump()">getHexDump</A></B>()</CODE> |
| |
| <BR> |
| Returns hexdump of this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getInt()">getInt</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getInt(int)">getInt</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getLong()">getLong</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getLong(int)">getLong</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getObject()">getObject</A></B>()</CODE> |
| |
| <BR> |
| Reads a Java object from the buffer using the context <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> |
| of the current thread.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getObject(java.lang.ClassLoader)">getObject</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader)</CODE> |
| |
| <BR> |
| Reads a Java object from the buffer using the specified <tt>classLoader</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString(java.nio.charset.CharsetDecoder)">getPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder)</CODE> |
| |
| <BR> |
| Reads a string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getPrefixedString(int, java.nio.charset.CharsetDecoder)">getPrefixedString</A></B>(int prefixLength, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder)</CODE> |
| |
| <BR> |
| Reads a string which has a length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getShort()">getShort</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getShort(int)">getShort</A></B>(int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getString(java.nio.charset.CharsetDecoder)">getString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder)</CODE> |
| |
| <BR> |
| Reads a <code>NUL</code>-terminated string from this buffer using the |
| specified <code>decoder</code> and returns it.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getString(int, java.nio.charset.CharsetDecoder)">getString</A></B>(int fieldSize, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder)</CODE> |
| |
| <BR> |
| Reads a <code>NUL</code>-terminated string from this buffer using the |
| specified <code>decoder</code> and returns it.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned()">getUnsigned</A></B>()</CODE> |
| |
| <BR> |
| Reads one unsigned byte as a short integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsigned(int)">getUnsigned</A></B>(int index)</CODE> |
| |
| <BR> |
| Reads one byte as an unsigned short integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt()">getUnsignedInt</A></B>()</CODE> |
| |
| <BR> |
| Reads four bytes unsigned integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedInt(int)">getUnsignedInt</A></B>(int index)</CODE> |
| |
| <BR> |
| Reads four bytes unsigned integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort()">getUnsignedShort</A></B>()</CODE> |
| |
| <BR> |
| Reads two bytes unsigned integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#getUnsignedShort(int)">getUnsignedShort</A></B>(int index)</CODE> |
| |
| <BR> |
| Reads two bytes unsigned integer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#hashCode()">hashCode</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#hasRemaining()">hasRemaining</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isAutoExpand()">isAutoExpand</A></B>()</CODE> |
| |
| <BR> |
| Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isDirect()">isDirect</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isPooled()">isPooled</A></B>()</CODE> |
| |
| <BR> |
| Returns <tt>true</tt> if and only if this buffer is returned back |
| to the buffer pool when released.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isReadOnly()">isReadOnly</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#isUseDirectBuffers()">isUseDirectBuffers</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#limit()">limit</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#limit(int)">limit</A></B>(int newLimit)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#mark()">mark</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#markValue()">markValue</A></B>()</CODE> |
| |
| <BR> |
| Returns the position of the current mark.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#order()">order</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#order(java.nio.ByteOrder)">order</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A> bo)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#position()">position</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#position(int)">position</A></B>(int newPosition)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int)">prefixedDataAvailable</A></B>(int prefixLength)</CODE> |
| |
| <BR> |
| Returns <tt>true</tt> if this buffer contains a data which has a data |
| length as a prefix and the buffer has remaining data as enough as |
| specified in the data length field.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int, int)">prefixedDataAvailable</A></B>(int prefixLength, |
| int maxDataLength)</CODE> |
| |
| <BR> |
| Returns <tt>true</tt> if this buffer contains a data which has a data |
| length as a prefix and the buffer has remaining data as enough as |
| specified in the data length field.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte)">put</A></B>(byte b)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte[])">put</A></B>(byte[] src)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(byte[], int, int)">put</A></B>(byte[] src, |
| int offset, |
| int length)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(java.nio.ByteBuffer)">put</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> src)</CODE> |
| |
| <BR> |
| Writes the content of the specified <tt>src</tt> into this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(org.apache.mina.common.ByteBuffer)">put</A></B>(<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> src)</CODE> |
| |
| <BR> |
| Writes the content of the specified <tt>src</tt> into this buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#put(int, byte)">put</A></B>(int index, |
| byte b)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putChar(char)">putChar</A></B>(char value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putChar(int, char)">putChar</A></B>(int index, |
| char value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putDouble(double)">putDouble</A></B>(double value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putDouble(int, double)">putDouble</A></B>(int index, |
| double value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putFloat(float)">putFloat</A></B>(float value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putFloat(int, float)">putFloat</A></B>(int index, |
| float value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putInt(int)">putInt</A></B>(int value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putInt(int, int)">putInt</A></B>(int index, |
| int value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putLong(int, long)">putLong</A></B>(int index, |
| long value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putLong(long)">putLong</A></B>(long value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putObject(java.lang.Object)">putObject</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</CODE> |
| |
| <BR> |
| Writes the specified Java object to the buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| int prefixLength, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, int, byte, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| int prefixLength, |
| int padding, |
| byte padValue, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putPrefixedString(java.lang.CharSequence, int, int, java.nio.charset.CharsetEncoder)">putPrefixedString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| int prefixLength, |
| int padding, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putShort(int, short)">putShort</A></B>(int index, |
| short value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putShort(short)">putShort</A></B>(short value)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)">putString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer using the |
| specified <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#putString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)">putString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| int fieldSize, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder)</CODE> |
| |
| <BR> |
| Writes the content of <code>in</code> into this buffer as a |
| <code>NUL</code>-terminated string using the specified |
| <code>encoder</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#release()">release</A></B>()</CODE> |
| |
| <BR> |
| Releases the specified buffer to buffer pool.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#remaining()">remaining</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#reset()">reset</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#rewind()">rewind</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setAllocator(org.apache.mina.common.ByteBufferAllocator)">setAllocator</A></B>(<A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</A> newAllocator)</CODE> |
| |
| <BR> |
| Changes the current allocator with the specified one to manage |
| the allocated buffers from now.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setAutoExpand(boolean)">setAutoExpand</A></B>(boolean autoExpand)</CODE> |
| |
| <BR> |
| Turns on or off <tt>autoExpand</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setPooled(boolean)">setPooled</A></B>(boolean pooled)</CODE> |
| |
| <BR> |
| Sets whether this buffer is returned back to the buffer pool when released.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setUseDirectBuffers(boolean)">setUseDirectBuffers</A></B>(boolean useDirectBuffers)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#skip(int)">skip</A></B>(int size)</CODE> |
| |
| <BR> |
| Forwards the position of this buffer as the specified <code>size</code> |
| bytes.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#slice()">slice</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#sweep()">sweep</A></B>()</CODE> |
| |
| <BR> |
| Clears this buffer and fills its content with <tt>NUL</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#sweep(byte)">sweep</A></B>(byte value)</CODE> |
| |
| <BR> |
| Clears this buffer and fills its content with <tt>value</tt>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])">wrap</A></B>(byte[] byteArray)</CODE> |
| |
| <BR> |
| Wraps the specified byte array into MINA heap buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)">wrap</A></B>(byte[] byteArray, |
| int offset, |
| int length)</CODE> |
| |
| <BR> |
| Wraps the specified byte array into MINA heap buffer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)">wrap</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> nioBuffer)</CODE> |
| |
| <BR> |
| Wraps the specified NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> into MINA buffer.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="ByteBuffer()"><!-- --></A><H3> |
| ByteBuffer</H3> |
| <PRE> |
| protected <B>ByteBuffer</B>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getAllocator()"><!-- --></A><H3> |
| getAllocator</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</A> <B>getAllocator</B>()</PRE> |
| <DL> |
| <DD>Returns the current allocator which manages the allocated buffers. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setAllocator(org.apache.mina.common.ByteBufferAllocator)"><!-- --></A><H3> |
| setAllocator</H3> |
| <PRE> |
| public static void <B>setAllocator</B>(<A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common">ByteBufferAllocator</A> newAllocator)</PRE> |
| <DL> |
| <DD>Changes the current allocator with the specified one to manage |
| the allocated buffers from now. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isUseDirectBuffers()"><!-- --></A><H3> |
| isUseDirectBuffers</H3> |
| <PRE> |
| public static boolean <B>isUseDirectBuffers</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setUseDirectBuffers(boolean)"><!-- --></A><H3> |
| setUseDirectBuffers</H3> |
| <PRE> |
| public static void <B>setUseDirectBuffers</B>(boolean useDirectBuffers)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="allocate(int)"><!-- --></A><H3> |
| allocate</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>allocate</B>(int capacity)</PRE> |
| <DL> |
| <DD>Returns the direct or heap buffer which is capable of the specified |
| size. This method tries to allocate direct buffer first, and then |
| tries heap buffer if direct buffer memory is exhausted. Please use |
| <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A> to allocate buffers of specific type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>capacity</CODE> - the capacity of the buffer</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="allocate(int, boolean)"><!-- --></A><H3> |
| allocate</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>allocate</B>(int capacity, |
| boolean direct)</PRE> |
| <DL> |
| <DD>Returns the buffer which is capable of the specified size. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>capacity</CODE> - the capacity of the buffer<DD><CODE>direct</CODE> - <tt>true</tt> to get a direct buffer, |
| <tt>false</tt> to get a heap buffer.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="wrap(java.nio.ByteBuffer)"><!-- --></A><H3> |
| wrap</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> nioBuffer)</PRE> |
| <DL> |
| <DD>Wraps the specified NIO <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio"><CODE>ByteBuffer</CODE></A> into MINA buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="wrap(byte[])"><!-- --></A><H3> |
| wrap</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(byte[] byteArray)</PRE> |
| <DL> |
| <DD>Wraps the specified byte array into MINA heap buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="wrap(byte[], int, int)"><!-- --></A><H3> |
| wrap</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>wrap</B>(byte[] byteArray, |
| int offset, |
| int length)</PRE> |
| <DL> |
| <DD>Wraps the specified byte array into MINA heap buffer. |
| Please note that MINA buffers are going to be pooled, and |
| therefore there can be waste of memory if you wrap |
| your byte array specifying <tt>offset</tt> and <tt>length</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="acquire()"><!-- --></A><H3> |
| acquire</H3> |
| <PRE> |
| public abstract void <B>acquire</B>()</PRE> |
| <DL> |
| <DD>Increases the internal reference count of this buffer to defer |
| automatic release. You have to invoke <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#release()"><CODE>release()</CODE></A> as many |
| as you invoked this method to release this buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if you attempt to acquire already |
| released buffer.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="release()"><!-- --></A><H3> |
| release</H3> |
| <PRE> |
| public abstract void <B>release</B>()</PRE> |
| <DL> |
| <DD>Releases the specified buffer to buffer pool. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if you attempt to release already |
| released buffer.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="buf()"><!-- --></A><H3> |
| buf</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> <B>buf</B>()</PRE> |
| <DL> |
| <DD>Returns the underlying NIO buffer instance. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isDirect()"><!-- --></A><H3> |
| isDirect</H3> |
| <PRE> |
| public abstract boolean <B>isDirect</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#isDirect()" title="class or interface in java.nio"><CODE>ByteBuffer.isDirect()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isReadOnly()"><!-- --></A><H3> |
| isReadOnly</H3> |
| <PRE> |
| public abstract boolean <B>isReadOnly</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#isReadOnly()" title="class or interface in java.nio"><CODE>Buffer.isReadOnly()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="capacity()"><!-- --></A><H3> |
| capacity</H3> |
| <PRE> |
| public abstract int <B>capacity</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#capacity()" title="class or interface in java.nio"><CODE>Buffer.capacity()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="capacity(int)"><!-- --></A><H3> |
| capacity</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>capacity</B>(int newCapacity)</PRE> |
| <DL> |
| <DD>Changes the capacity of this buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isAutoExpand()"><!-- --></A><H3> |
| isAutoExpand</H3> |
| <PRE> |
| public abstract boolean <B>isAutoExpand</B>()</PRE> |
| <DL> |
| <DD>Returns <tt>true</tt> if and only if <tt>autoExpand</tt> is turned on. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setAutoExpand(boolean)"><!-- --></A><H3> |
| setAutoExpand</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>setAutoExpand</B>(boolean autoExpand)</PRE> |
| <DL> |
| <DD>Turns on or off <tt>autoExpand</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="expand(int)"><!-- --></A><H3> |
| expand</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>expand</B>(int expectedRemaining)</PRE> |
| <DL> |
| <DD>Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the current position. |
| This method works even if you didn't set <tt>autoExpand</tt> to |
| <tt>true</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="expand(int, int)"><!-- --></A><H3> |
| expand</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>expand</B>(int pos, |
| int expectedRemaining)</PRE> |
| <DL> |
| <DD>Changes the capacity and limit of this buffer so this buffer get |
| the specified <tt>expectedRemaining</tt> room from the specified |
| <tt>pos</tt>. |
| This method works even if you didn't set <tt>autoExpand</tt> to |
| <tt>true</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isPooled()"><!-- --></A><H3> |
| isPooled</H3> |
| <PRE> |
| public abstract boolean <B>isPooled</B>()</PRE> |
| <DL> |
| <DD>Returns <tt>true</tt> if and only if this buffer is returned back |
| to the buffer pool when released. |
| <p> |
| The default value of this property is <tt>true</tt> if and only if you |
| allocated this buffer using <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)"><CODE>allocate(int)</CODE></A> or <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A>, |
| or <tt>false</tt> otherwise. (i.e. <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])"><CODE>wrap(byte[])</CODE></A>, <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)"><CODE>wrap(byte[], int, int)</CODE></A>, |
| and <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)"><CODE>wrap(java.nio.ByteBuffer)</CODE></A>) |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPooled(boolean)"><!-- --></A><H3> |
| setPooled</H3> |
| <PRE> |
| public abstract void <B>setPooled</B>(boolean pooled)</PRE> |
| <DL> |
| <DD>Sets whether this buffer is returned back to the buffer pool when released. |
| <p> |
| The default value of this property is <tt>true</tt> if and only if you |
| allocated this buffer using <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int)"><CODE>allocate(int)</CODE></A> or <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#allocate(int, boolean)"><CODE>allocate(int, boolean)</CODE></A>, |
| or <tt>false</tt> otherwise. (i.e. <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[])"><CODE>wrap(byte[])</CODE></A>, <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(byte[], int, int)"><CODE>wrap(byte[], int, int)</CODE></A>, |
| and <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#wrap(java.nio.ByteBuffer)"><CODE>wrap(java.nio.ByteBuffer)</CODE></A>) |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="position()"><!-- --></A><H3> |
| position</H3> |
| <PRE> |
| public abstract int <B>position</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#position()" title="class or interface in java.nio"><CODE>Buffer.position()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="position(int)"><!-- --></A><H3> |
| position</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>position</B>(int newPosition)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#position(int)" title="class or interface in java.nio"><CODE>Buffer.position(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="limit()"><!-- --></A><H3> |
| limit</H3> |
| <PRE> |
| public abstract int <B>limit</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#limit()" title="class or interface in java.nio"><CODE>Buffer.limit()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="limit(int)"><!-- --></A><H3> |
| limit</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>limit</B>(int newLimit)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#limit(int)" title="class or interface in java.nio"><CODE>Buffer.limit(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="mark()"><!-- --></A><H3> |
| mark</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>mark</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#mark()" title="class or interface in java.nio"><CODE>Buffer.mark()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="markValue()"><!-- --></A><H3> |
| markValue</H3> |
| <PRE> |
| public abstract int <B>markValue</B>()</PRE> |
| <DL> |
| <DD>Returns the position of the current mark. This method returns <tt>-1</tt> if no |
| mark is set. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="reset()"><!-- --></A><H3> |
| reset</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>reset</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#reset()" title="class or interface in java.nio"><CODE>Buffer.reset()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clear()"><!-- --></A><H3> |
| clear</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>clear</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#clear()" title="class or interface in java.nio"><CODE>Buffer.clear()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="sweep()"><!-- --></A><H3> |
| sweep</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>sweep</B>()</PRE> |
| <DL> |
| <DD>Clears this buffer and fills its content with <tt>NUL</tt>. |
| The position is set to zero, the limit is set to the capacity, |
| and the mark is discarded. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="sweep(byte)"><!-- --></A><H3> |
| sweep</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>sweep</B>(byte value)</PRE> |
| <DL> |
| <DD>Clears this buffer and fills its content with <tt>value</tt>. |
| The position is set to zero, the limit is set to the capacity, |
| and the mark is discarded. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="flip()"><!-- --></A><H3> |
| flip</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>flip</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#flip()" title="class or interface in java.nio"><CODE>Buffer.flip()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rewind()"><!-- --></A><H3> |
| rewind</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>rewind</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#rewind()" title="class or interface in java.nio"><CODE>Buffer.rewind()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="remaining()"><!-- --></A><H3> |
| remaining</H3> |
| <PRE> |
| public int <B>remaining</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#remaining()" title="class or interface in java.nio"><CODE>Buffer.remaining()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hasRemaining()"><!-- --></A><H3> |
| hasRemaining</H3> |
| <PRE> |
| public boolean <B>hasRemaining</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/Buffer.html#hasRemaining()" title="class or interface in java.nio"><CODE>Buffer.hasRemaining()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="duplicate()"><!-- --></A><H3> |
| duplicate</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>duplicate</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#duplicate()" title="class or interface in java.nio"><CODE>ByteBuffer.duplicate()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="slice()"><!-- --></A><H3> |
| slice</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>slice</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#slice()" title="class or interface in java.nio"><CODE>ByteBuffer.slice()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asReadOnlyBuffer()"><!-- --></A><H3> |
| asReadOnlyBuffer</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>asReadOnlyBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asReadOnlyBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asReadOnlyBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="array()"><!-- --></A><H3> |
| array</H3> |
| <PRE> |
| public abstract byte[] <B>array</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#array()" title="class or interface in java.nio"><CODE>ByteBuffer.array()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="arrayOffset()"><!-- --></A><H3> |
| arrayOffset</H3> |
| <PRE> |
| public abstract int <B>arrayOffset</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#arrayOffset()" title="class or interface in java.nio"><CODE>ByteBuffer.arrayOffset()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get()"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public abstract byte <B>get</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get()" title="class or interface in java.nio"><CODE>ByteBuffer.get()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsigned()"><!-- --></A><H3> |
| getUnsigned</H3> |
| <PRE> |
| public short <B>getUnsigned</B>()</PRE> |
| <DL> |
| <DD>Reads one unsigned byte as a short integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(byte)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte b)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte)" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(int)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public abstract byte <B>get</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(int)" title="class or interface in java.nio"><CODE>ByteBuffer.get(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsigned(int)"><!-- --></A><H3> |
| getUnsigned</H3> |
| <PRE> |
| public short <B>getUnsigned</B>(int index)</PRE> |
| <DL> |
| <DD>Reads one byte as an unsigned short integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(int, byte)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(int index, |
| byte b)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(int, byte)" title="class or interface in java.nio"><CODE>ByteBuffer.put(int, byte)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(byte[], int, int)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>get</B>(byte[] dst, |
| int offset, |
| int length)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(byte[], int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.get(byte[], int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(byte[])"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>get</B>(byte[] dst)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#get(byte[])" title="class or interface in java.nio"><CODE>ByteBuffer.get(byte[])</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(java.nio.ByteBuffer)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A> src)</PRE> |
| <DL> |
| <DD>Writes the content of the specified <tt>src</tt> into this buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(org.apache.mina.common.ByteBuffer)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(<A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> src)</PRE> |
| <DL> |
| <DD>Writes the content of the specified <tt>src</tt> into this buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(byte[], int, int)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte[] src, |
| int offset, |
| int length)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte[], int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte[], int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(byte[])"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>put</B>(byte[] src)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#put(byte[])" title="class or interface in java.nio"><CODE>ByteBuffer.put(byte[])</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="compact()"><!-- --></A><H3> |
| compact</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>compact</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#compact()" title="class or interface in java.nio"><CODE>ByteBuffer.compact()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hashCode()"><!-- --></A><H3> |
| hashCode</H3> |
| <PRE> |
| public int <B>hashCode</B>()</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
| equals</H3> |
| <PRE> |
| public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="compareTo(java.lang.Object)"><!-- --></A><H3> |
| compareTo</H3> |
| <PRE> |
| public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="order()"><!-- --></A><H3> |
| order</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A> <B>order</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#order()" title="class or interface in java.nio"><CODE>ByteBuffer.order()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="order(java.nio.ByteOrder)"><!-- --></A><H3> |
| order</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>order</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteOrder.html" title="class or interface in java.nio">ByteOrder</A> bo)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#order(java.nio.ByteOrder)" title="class or interface in java.nio"><CODE>ByteBuffer.order(ByteOrder)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getChar()"><!-- --></A><H3> |
| getChar</H3> |
| <PRE> |
| public abstract char <B>getChar</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getChar()" title="class or interface in java.nio"><CODE>ByteBuffer.getChar()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putChar(char)"><!-- --></A><H3> |
| putChar</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putChar</B>(char value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putChar(char)" title="class or interface in java.nio"><CODE>ByteBuffer.putChar(char)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getChar(int)"><!-- --></A><H3> |
| getChar</H3> |
| <PRE> |
| public abstract char <B>getChar</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getChar(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getChar(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putChar(int, char)"><!-- --></A><H3> |
| putChar</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putChar</B>(int index, |
| char value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putChar(int, char)" title="class or interface in java.nio"><CODE>ByteBuffer.putChar(int, char)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asCharBuffer()"><!-- --></A><H3> |
| asCharBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/CharBuffer.html" title="class or interface in java.nio">CharBuffer</A> <B>asCharBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asCharBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asCharBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getShort()"><!-- --></A><H3> |
| getShort</H3> |
| <PRE> |
| public abstract short <B>getShort</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getShort()" title="class or interface in java.nio"><CODE>ByteBuffer.getShort()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsignedShort()"><!-- --></A><H3> |
| getUnsignedShort</H3> |
| <PRE> |
| public int <B>getUnsignedShort</B>()</PRE> |
| <DL> |
| <DD>Reads two bytes unsigned integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putShort(short)"><!-- --></A><H3> |
| putShort</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putShort</B>(short value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putShort(short)" title="class or interface in java.nio"><CODE>ByteBuffer.putShort(short)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getShort(int)"><!-- --></A><H3> |
| getShort</H3> |
| <PRE> |
| public abstract short <B>getShort</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getShort()" title="class or interface in java.nio"><CODE>ByteBuffer.getShort()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsignedShort(int)"><!-- --></A><H3> |
| getUnsignedShort</H3> |
| <PRE> |
| public int <B>getUnsignedShort</B>(int index)</PRE> |
| <DL> |
| <DD>Reads two bytes unsigned integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putShort(int, short)"><!-- --></A><H3> |
| putShort</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putShort</B>(int index, |
| short value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putShort(int, short)" title="class or interface in java.nio"><CODE>ByteBuffer.putShort(int, short)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asShortBuffer()"><!-- --></A><H3> |
| asShortBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ShortBuffer.html" title="class or interface in java.nio">ShortBuffer</A> <B>asShortBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asShortBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asShortBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getInt()"><!-- --></A><H3> |
| getInt</H3> |
| <PRE> |
| public abstract int <B>getInt</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getInt()" title="class or interface in java.nio"><CODE>ByteBuffer.getInt()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsignedInt()"><!-- --></A><H3> |
| getUnsignedInt</H3> |
| <PRE> |
| public long <B>getUnsignedInt</B>()</PRE> |
| <DL> |
| <DD>Reads four bytes unsigned integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putInt(int)"><!-- --></A><H3> |
| putInt</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putInt</B>(int value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putInt(int)" title="class or interface in java.nio"><CODE>ByteBuffer.putInt(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getInt(int)"><!-- --></A><H3> |
| getInt</H3> |
| <PRE> |
| public abstract int <B>getInt</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getInt(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getInt(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUnsignedInt(int)"><!-- --></A><H3> |
| getUnsignedInt</H3> |
| <PRE> |
| public long <B>getUnsignedInt</B>(int index)</PRE> |
| <DL> |
| <DD>Reads four bytes unsigned integer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putInt(int, int)"><!-- --></A><H3> |
| putInt</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putInt</B>(int index, |
| int value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putInt(int, int)" title="class or interface in java.nio"><CODE>ByteBuffer.putInt(int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asIntBuffer()"><!-- --></A><H3> |
| asIntBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/IntBuffer.html" title="class or interface in java.nio">IntBuffer</A> <B>asIntBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asIntBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asIntBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLong()"><!-- --></A><H3> |
| getLong</H3> |
| <PRE> |
| public abstract long <B>getLong</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getLong()" title="class or interface in java.nio"><CODE>ByteBuffer.getLong()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putLong(long)"><!-- --></A><H3> |
| putLong</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putLong</B>(long value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putLong(int, long)" title="class or interface in java.nio"><CODE>ByteBuffer.putLong(int, long)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLong(int)"><!-- --></A><H3> |
| getLong</H3> |
| <PRE> |
| public abstract long <B>getLong</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getLong(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getLong(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putLong(int, long)"><!-- --></A><H3> |
| putLong</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putLong</B>(int index, |
| long value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putLong(int, long)" title="class or interface in java.nio"><CODE>ByteBuffer.putLong(int, long)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asLongBuffer()"><!-- --></A><H3> |
| asLongBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/LongBuffer.html" title="class or interface in java.nio">LongBuffer</A> <B>asLongBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asLongBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asLongBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFloat()"><!-- --></A><H3> |
| getFloat</H3> |
| <PRE> |
| public abstract float <B>getFloat</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getFloat()" title="class or interface in java.nio"><CODE>ByteBuffer.getFloat()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putFloat(float)"><!-- --></A><H3> |
| putFloat</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putFloat</B>(float value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putFloat(float)" title="class or interface in java.nio"><CODE>ByteBuffer.putFloat(float)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFloat(int)"><!-- --></A><H3> |
| getFloat</H3> |
| <PRE> |
| public abstract float <B>getFloat</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getFloat(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getFloat(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putFloat(int, float)"><!-- --></A><H3> |
| putFloat</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putFloat</B>(int index, |
| float value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putFloat(int, float)" title="class or interface in java.nio"><CODE>ByteBuffer.putFloat(int, float)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asFloatBuffer()"><!-- --></A><H3> |
| asFloatBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/FloatBuffer.html" title="class or interface in java.nio">FloatBuffer</A> <B>asFloatBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asFloatBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asFloatBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDouble()"><!-- --></A><H3> |
| getDouble</H3> |
| <PRE> |
| public abstract double <B>getDouble</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getDouble()" title="class or interface in java.nio"><CODE>ByteBuffer.getDouble()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putDouble(double)"><!-- --></A><H3> |
| putDouble</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putDouble</B>(double value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putDouble(double)" title="class or interface in java.nio"><CODE>ByteBuffer.putDouble(double)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDouble(int)"><!-- --></A><H3> |
| getDouble</H3> |
| <PRE> |
| public abstract double <B>getDouble</B>(int index)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#getDouble(int)" title="class or interface in java.nio"><CODE>ByteBuffer.getDouble(int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putDouble(int, double)"><!-- --></A><H3> |
| putDouble</H3> |
| <PRE> |
| public abstract <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putDouble</B>(int index, |
| double value)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#putDouble(int, double)" title="class or interface in java.nio"><CODE>ByteBuffer.putDouble(int, double)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asDoubleBuffer()"><!-- --></A><H3> |
| asDoubleBuffer</H3> |
| <PRE> |
| public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/DoubleBuffer.html" title="class or interface in java.nio">DoubleBuffer</A> <B>asDoubleBuffer</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html#asDoubleBuffer()" title="class or interface in java.nio"><CODE>ByteBuffer.asDoubleBuffer()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asInputStream()"><!-- --></A><H3> |
| asInputStream</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> <B>asInputStream</B>()</PRE> |
| <DL> |
| <DD>Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io"><CODE>InputStream</CODE></A> that reads the data from this buffer. |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#read()" title="class or interface in java.io"><CODE>InputStream.read()</CODE></A> returns <tt>-1</tt> if the buffer position |
| reaches to the limit. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="asOutputStream()"><!-- --></A><H3> |
| asOutputStream</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A> <B>asOutputStream</B>()</PRE> |
| <DL> |
| <DD>Returns an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html" title="class or interface in java.io"><CODE>OutputStream</CODE></A> that appends the data into this buffer. |
| Please note that the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/OutputStream.html#write(int)" title="class or interface in java.io"><CODE>OutputStream.write(int)</CODE></A> will throw a |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio"><CODE>BufferOverflowException</CODE></A> instead of an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io"><CODE>IOException</CODE></A> |
| in case of buffer overflow. Please set <tt>autoExpand</tt> property by |
| calling <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#setAutoExpand(boolean)"><CODE>setAutoExpand(boolean)</CODE></A> to prevent the unexpected runtime |
| exception. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getHexDump()"><!-- --></A><H3> |
| getHexDump</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getHexDump</B>()</PRE> |
| <DL> |
| <DD>Returns hexdump of this buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getString(java.nio.charset.CharsetDecoder)"><!-- --></A><H3> |
| getString</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Reads a <code>NUL</code>-terminated string from this buffer using the |
| specified <code>decoder</code> and returns it. This method reads |
| until the limit of this buffer if no <tt>NUL</tt> is found. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getString(int, java.nio.charset.CharsetDecoder)"><!-- --></A><H3> |
| getString</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getString</B>(int fieldSize, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Reads a <code>NUL</code>-terminated string from this buffer using the |
| specified <code>decoder</code> and returns it. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fieldSize</CODE> - the maximum number of bytes to read |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer using the |
| specified <code>encoder</code>. This method doesn't terminate |
| string with <tt>NUL</tt>. You have to do it by yourself. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| int fieldSize, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer as a |
| <code>NUL</code>-terminated string using the specified |
| <code>encoder</code>. |
| <p> |
| If the charset name of the encoder is UTF-16, you cannot specify |
| odd <code>fieldSize</code>, and this method will append two |
| <code>NUL</code>s as a terminator. |
| <p> |
| Please note that this method doesn't terminate with <code>NUL</code> |
| if the input string is longer than <tt>fieldSize</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fieldSize</CODE> - the maximum number of bytes to write |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPrefixedString(java.nio.charset.CharsetDecoder)"><!-- --></A><H3> |
| getPrefixedString</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Reads a string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it. |
| This method is a shortcut for <tt>getPrefixedString(2, decoder)</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPrefixedString(int, java.nio.charset.CharsetDecoder)"><!-- --></A><H3> |
| getPrefixedString</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPrefixedString</B>(int prefixLength, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetDecoder.html" title="class or interface in java.nio.charset">CharsetDecoder</A> decoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Reads a string which has a length field before the actual |
| encoded string, using the specified <code>decoder</code> and returns it. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4) |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putPrefixedString(java.lang.CharSequence, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putPrefixedString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>. |
| This method is a shortcut for <tt>putPrefixedString(in, 2, 0, encoder)</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putPrefixedString(java.lang.CharSequence, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putPrefixedString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| int prefixLength, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>. |
| This method is a shortcut for <tt>putPrefixedString(in, prefixLength, 0, encoder)</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4) |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putPrefixedString(java.lang.CharSequence, int, int, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putPrefixedString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> in, |
| int prefixLength, |
| int padding, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>. |
| This method is a shortcut for <tt>putPrefixedString(in, prefixLength, padding, ( byte ) 0, encoder)</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)<DD><CODE>padding</CODE> - the number of padded <tt>NUL</tt>s (1 (or 0), 2, or 4) |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putPrefixedString(java.lang.CharSequence, int, int, byte, java.nio.charset.CharsetEncoder)"><!-- --></A><H3> |
| putPrefixedString</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putPrefixedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A> val, |
| int prefixLength, |
| int padding, |
| byte padValue, |
| <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharsetEncoder.html" title="class or interface in java.nio.charset">CharsetEncoder</A> encoder) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></PRE> |
| <DL> |
| <DD>Writes the content of <code>in</code> into this buffer as a |
| string which has a 16-bit length field before the actual |
| encoded string, using the specified <code>encoder</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the length field (1, 2, or 4)<DD><CODE>padding</CODE> - the number of padded bytes (1 (or 0), 2, or 4)<DD><CODE>padValue</CODE> - the value of padded bytes |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/BufferOverflowException.html" title="class or interface in java.nio">BufferOverflowException</A></CODE> - if the specified string doesn't fit |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/CharacterCodingException.html" title="class or interface in java.nio.charset">CharacterCodingException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getObject()"><!-- --></A><H3> |
| getObject</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getObject</B>() |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></PRE> |
| <DL> |
| <DD>Reads a Java object from the buffer using the context <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> |
| of the current thread. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getObject(java.lang.ClassLoader)"><!-- --></A><H3> |
| getObject</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getObject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader) |
| throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></PRE> |
| <DL> |
| <DD>Reads a Java object from the buffer using the specified <tt>classLoader</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putObject(java.lang.Object)"><!-- --></A><H3> |
| putObject</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>putObject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE> |
| <DL> |
| <DD>Writes the specified Java object to the buffer. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prefixedDataAvailable(int)"><!-- --></A><H3> |
| prefixedDataAvailable</H3> |
| <PRE> |
| public boolean <B>prefixedDataAvailable</B>(int prefixLength)</PRE> |
| <DL> |
| <DD>Returns <tt>true</tt> if this buffer contains a data which has a data |
| length as a prefix and the buffer has remaining data as enough as |
| specified in the data length field. This method is identical with |
| <tt>prefixedDataAvailable( prefixLength, Integer.MAX_VALUE )</tt>. |
| Please not that using this method can allow DoS (Denial of Service) |
| attack in case the remote peer sends too big data length value. |
| It is recommended to use <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#prefixedDataAvailable(int, int)"><CODE>prefixedDataAvailable(int, int)</CODE></A> |
| instead. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the prefix field (1, 2, or 4) |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if prefixLength is wrong |
| <DD><CODE><A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common">BufferDataException</A></CODE> - if data length is negative</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prefixedDataAvailable(int, int)"><!-- --></A><H3> |
| prefixedDataAvailable</H3> |
| <PRE> |
| public boolean <B>prefixedDataAvailable</B>(int prefixLength, |
| int maxDataLength)</PRE> |
| <DL> |
| <DD>Returns <tt>true</tt> if this buffer contains a data which has a data |
| length as a prefix and the buffer has remaining data as enough as |
| specified in the data length field. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefixLength</CODE> - the length of the prefix field (1, 2, or 4)<DD><CODE>maxDataLength</CODE> - the allowed maximum of the read data length |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if prefixLength is wrong |
| <DD><CODE><A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common">BufferDataException</A></CODE> - if data length is negative or greater then <tt>maxDataLength</tt></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="skip(int)"><!-- --></A><H3> |
| skip</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>skip</B>(int size)</PRE> |
| <DL> |
| <DD>Forwards the position of this buffer as the specified <code>size</code> |
| bytes. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fill(byte, int)"><!-- --></A><H3> |
| fill</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fill</B>(byte value, |
| int size)</PRE> |
| <DL> |
| <DD>Fills this buffer with the specified value. |
| This method moves buffer position forward. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillAndReset(byte, int)"><!-- --></A><H3> |
| fillAndReset</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fillAndReset</B>(byte value, |
| int size)</PRE> |
| <DL> |
| <DD>Fills this buffer with the specified value. |
| This method does not change buffer position. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fill(int)"><!-- --></A><H3> |
| fill</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fill</B>(int size)</PRE> |
| <DL> |
| <DD>Fills this buffer with <code>NUL (0x00)</code>. |
| This method moves buffer position forward. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillAndReset(int)"><!-- --></A><H3> |
| fillAndReset</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>fillAndReset</B>(int size)</PRE> |
| <DL> |
| <DD>Fills this buffer with <code>NUL (0x00)</code>. |
| This method does not change buffer position. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="autoExpand(int)"><!-- --></A><H3> |
| autoExpand</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>autoExpand</B>(int expectedRemaining)</PRE> |
| <DL> |
| <DD>This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when |
| <tt>autoExpand</tt> property is <tt>true</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="autoExpand(int, int)"><!-- --></A><H3> |
| autoExpand</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/mina/common/ByteBuffer.html" title="class in org.apache.mina.common">ByteBuffer</A> <B>autoExpand</B>(int pos, |
| int expectedRemaining)</PRE> |
| <DL> |
| <DD>This method forwards the call to <A HREF="../../../../org/apache/mina/common/ByteBuffer.html#expand(int)"><CODE>expand(int)</CODE></A> only when |
| <tt>autoExpand</tt> property is <tt>true</tt>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/mina/common/ByteBufferAllocator.html" title="interface in org.apache.mina.common"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/mina/common/ByteBuffer.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="ByteBuffer.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |