Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 46922 invoked from network); 1 Dec 2005 06:18:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 06:18:14 -0000 Received: (qmail 99432 invoked by uid 500); 1 Dec 2005 06:15:14 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 98470 invoked by uid 500); 1 Dec 2005 06:13:08 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 97964 invoked by uid 99); 1 Dec 2005 06:12:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2005 22:12:42 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 30 Nov 2005 22:14:06 -0800 Received: (qmail 44358 invoked by uid 65534); 1 Dec 2005 06:12:15 -0000 Message-ID: <20051201061215.44357.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r350185 - /directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java Date: Thu, 01 Dec 2005 06:12:15 -0000 To: commits@directory.apache.org From: trustin@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: trustin Date: Wed Nov 30 22:12:11 2005 New Revision: 350185 URL: http://svn.apache.org/viewcvs?rev=350185&view=rev Log: DIRMINA-133 JavaDocs to ByteBuffer to link to java.nio.ByteBuffer * Applied Peter's patch Modified: directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java Modified: directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java?rev=350185&r1=350184&r2=350185&view=diff ============================================================================== --- directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java (original) +++ directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java Wed Nov 30 22:12:11 2005 @@ -86,7 +86,7 @@ *
  • You pass the buffer by calling {@link ProtocolEncoderOutput#write(ByteBuffer)}.
  • * * And, you don't need to release any {@link ByteBuffer} which is passed as a parameter - * of {@link IoHandler#messageReceived(IoSession, ByteBuffer)} method. They are released + * of {@link IoHandler#messageReceived(IoSession, Object)} method. They are released * automatically when the method returns. *

    * You have to release buffers manually by calling {@link #release()} when: @@ -346,52 +346,124 @@ */ public abstract void setPooled( boolean pooled ); + /** + * @see java.nio.Buffer#position() + */ public abstract int position(); + /** + * @see java.nio.Buffer#position(int) + */ public abstract ByteBuffer position( int newPosition ); + /** + * @see java.nio.Buffer#limit() + */ public abstract int limit(); + /** + * @see java.nio.Buffer#limit(int) + */ public abstract ByteBuffer limit( int newLimit ); + /** + * @see java.nio.Buffer#mark() + */ public abstract ByteBuffer mark(); + /** + * @see java.nio.Buffer#reset() + */ public abstract ByteBuffer reset(); + /** + * @see java.nio.Buffer#clear() + */ public abstract ByteBuffer clear(); + /** + * @see java.nio.Buffer#flip() + */ public abstract ByteBuffer flip(); + /** + * @see java.nio.Buffer#rewind() + */ public abstract ByteBuffer rewind(); + /** + * @see java.nio.Buffer#remaining() + */ public abstract int remaining(); + /** + * @see java.nio.Buffer#hasRemaining() + */ public abstract boolean hasRemaining(); + /** + * @see java.nio.ByteBuffer#get() + */ public abstract byte get(); + /** + * Reads one unsigned byte as a short integer. + */ public abstract short getUnsigned(); + /** + * @see java.nio.ByteBuffer#put(byte) + */ public abstract ByteBuffer put( byte b ); + /** + * @see java.nio.ByteBuffer#get(int) + */ public abstract byte get( int index ); + /** + * Reads one byte as an unsigned short integer. + */ public abstract short getUnsigned( int index ); + /** + * @see java.nio.ByteBuffer#put(int, byte) + */ public abstract ByteBuffer put( int index, byte b ); + /** + * @see java.nio.ByteBuffer#get(byte[], int, int) + */ public abstract ByteBuffer get( byte[] dst, int offset, int length ); + /** + * @see java.nio.ByteBuffer#get(byte[]) + */ public abstract ByteBuffer get( byte[] dst ); + /** + * Writes the content of the specified src into this buffer. + */ public abstract ByteBuffer put( java.nio.ByteBuffer src ); + /** + * Writes the content of the specified src into this buffer. + */ public abstract ByteBuffer put( ByteBuffer src ); + /** + * @see java.nio.ByteBuffer#put(byte[], int, int) + */ public abstract ByteBuffer put( byte[] src, int offset, int length ); + /** + * @see java.nio.ByteBuffer#put(byte[]) + */ public abstract ByteBuffer put( byte[] src ); + /** + * @see java.nio.ByteBuffer#compact() + */ public abstract ByteBuffer compact(); public abstract String toString(); @@ -402,76 +474,184 @@ public abstract int compareTo( ByteBuffer that ); + /** + * @see java.nio.ByteBuffer#order() + */ public abstract ByteOrder order(); + /** + * @see java.nio.ByteBuffer#order(ByteOrder) + */ public abstract ByteBuffer order( ByteOrder bo ); + /** + * @see java.nio.ByteBuffer#getChar() + */ public abstract char getChar(); + /** + * @see java.nio.ByteBuffer#putChar(char) + */ public abstract ByteBuffer putChar( char value ); + /** + * @see java.nio.ByteBuffer#getChar(int) + */ public abstract char getChar( int index ); + /** + * @see java.nio.ByteBuffer#putChar(int, char) + */ public abstract ByteBuffer putChar( int index, char value ); + /** + * @see java.nio.ByteBuffer#asCharBuffer() + */ public abstract CharBuffer asCharBuffer(); + /** + * @see java.nio.ByteBuffer#getShort() + */ public abstract short getShort(); + /** + * Reads two bytes unsigned integer. + */ public abstract int getUnsignedShort(); + /** + * @see java.nio.ByteBuffer#putShort(short) + */ public abstract ByteBuffer putShort( short value ); + /** + * @see java.nio.ByteBuffer#getShort() + */ public abstract short getShort( int index ); + /** + * Reads two bytes unsigned integer. + */ public abstract int getUnsignedShort( int index ); + /** + * @see java.nio.ByteBuffer#putShort(int, short) + */ public abstract ByteBuffer putShort( int index, short value ); + /** + * @see java.nio.ByteBuffer#asShortBuffer() + */ public abstract ShortBuffer asShortBuffer(); + /** + * @see java.nio.ByteBuffer#getInt() + */ public abstract int getInt(); + /** + * Reads four bytes unsigned integer. + */ public abstract long getUnsignedInt(); + /** + * @see java.nio.ByteBuffer#putInt(int) + */ public abstract ByteBuffer putInt( int value ); + /** + * @see java.nio.ByteBuffer#getInt(int) + */ public abstract int getInt( int index ); + /** + * Reads four bytes unsigned integer. + */ public abstract long getUnsignedInt( int index ); + /** + * @see java.nio.ByteBuffer#putInt(int, int) + */ public abstract ByteBuffer putInt( int index, int value ); + /** + * @see java.nio.ByteBuffer#asIntBuffer() + */ public abstract IntBuffer asIntBuffer(); + /** + * @see java.nio.ByteBuffer#getLong() + */ public abstract long getLong(); + /** + * @see java.nio.ByteBuffer#putLong(int, long) + */ public abstract ByteBuffer putLong( long value ); + /** + * @see java.nio.ByteBuffer#getLong(int) + */ public abstract long getLong( int index ); + /** + * @see java.nio.ByteBuffer#putLong(int, long) + */ public abstract ByteBuffer putLong( int index, long value ); + /** + * @see java.nio.ByteBuffer#asLongBuffer() + */ public abstract LongBuffer asLongBuffer(); + /** + * @see java.nio.ByteBuffer#getFloat() + */ public abstract float getFloat(); + /** + * @see java.nio.ByteBuffer#putFloat(float) + */ public abstract ByteBuffer putFloat( float value ); + /** + * @see java.nio.ByteBuffer#getFloat(int) + */ public abstract float getFloat( int index ); + /** + * @see java.nio.ByteBuffer#putFloat(int, float) + */ public abstract ByteBuffer putFloat( int index, float value ); + /** + * @see java.nio.ByteBuffer#asFloatBuffer() + */ public abstract FloatBuffer asFloatBuffer(); + /** + * @see java.nio.ByteBuffer#getDouble() + */ public abstract double getDouble(); + /** + * @see java.nio.ByteBuffer#putDouble(double) + */ public abstract ByteBuffer putDouble( double value ); + /** + * @see java.nio.ByteBuffer#getDouble(int) + */ public abstract double getDouble( int index ); + /** + * @see java.nio.ByteBuffer#putDouble(int, double) + */ public abstract ByteBuffer putDouble( int index, double value ); + /** + * @see java.nio.ByteBuffer#asDoubleBuffer() + */ public abstract DoubleBuffer asDoubleBuffer(); /**