org.apache.qpid.proton.codec
Class WritableBuffer.ByteBufferWrapper

java.lang.Object
  extended by org.apache.qpid.proton.codec.WritableBuffer.ByteBufferWrapper
All Implemented Interfaces:
WritableBuffer
Enclosing interface:
WritableBuffer

public static class WritableBuffer.ByteBufferWrapper
extends Object
implements WritableBuffer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.WritableBuffer
WritableBuffer.ByteBufferWrapper
 
Constructor Summary
WritableBuffer.ByteBufferWrapper(ByteBuffer buf)
           
 
Method Summary
 boolean hasRemaining()
           
 int limit()
           
 int position()
           
 void position(int position)
           
 void put(byte b)
           
 void put(byte[] src, int offset, int length)
           
 void put(ByteBuffer src)
           
 void putDouble(double d)
           
 void putFloat(float f)
           
 void putInt(int i)
           
 void putLong(long l)
           
 void putShort(short s)
           
 int remaining()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WritableBuffer.ByteBufferWrapper

public WritableBuffer.ByteBufferWrapper(ByteBuffer buf)
Method Detail

put

public void put(byte b)
Specified by:
put in interface WritableBuffer

putFloat

public void putFloat(float f)
Specified by:
putFloat in interface WritableBuffer

putDouble

public void putDouble(double d)
Specified by:
putDouble in interface WritableBuffer

put

public void put(byte[] src,
                int offset,
                int length)
Specified by:
put in interface WritableBuffer

putShort

public void putShort(short s)
Specified by:
putShort in interface WritableBuffer

putInt

public void putInt(int i)
Specified by:
putInt in interface WritableBuffer

putLong

public void putLong(long l)
Specified by:
putLong in interface WritableBuffer

hasRemaining

public boolean hasRemaining()
Specified by:
hasRemaining in interface WritableBuffer

remaining

public int remaining()
Specified by:
remaining in interface WritableBuffer

position

public int position()
Specified by:
position in interface WritableBuffer

position

public void position(int position)
Specified by:
position in interface WritableBuffer

put

public void put(ByteBuffer src)
Specified by:
put in interface WritableBuffer

limit

public int limit()
Specified by:
limit in interface WritableBuffer

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.