| java.lang.Object org.apache.mina.common.IoBuffer org.apache.mina.common.IoBufferWrapper
All known Subclasses: org.apache.mina.common.UnderivableBuffer,
IoBufferWrapper | public class IoBufferWrapper extends IoBuffer (Code) | | A
IoBuffer that wraps a buffer and proxies any operations to it.
You can think this class like a
FilterOutputStream . All operations
are proxied by default so that you can extend this class and override existing
operations selectively. You can introduce new operations, too.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 602109 $, $Date: 2007-12-07 07:40:41 -0700 (Fri, 07 Dec 2007) $ |
Method Summary | |
public byte[] | array() | public int | arrayOffset() | public CharBuffer | asCharBuffer() | public DoubleBuffer | asDoubleBuffer() | public FloatBuffer | asFloatBuffer() | public InputStream | asInputStream() | public IntBuffer | asIntBuffer() | public LongBuffer | asLongBuffer() | public OutputStream | asOutputStream() | public IoBuffer | asReadOnlyBuffer() | public ShortBuffer | asShortBuffer() | public ByteBuffer | buf() | public int | capacity() | public IoBuffer | capacity(int newCapacity) | public IoBuffer | clear() | public IoBuffer | compact() | public int | compareTo(IoBuffer that) | public IoBuffer | duplicate() | public boolean | equals(Object ob) | public IoBuffer | expand(int pos, int expectedRemaining) | public IoBuffer | expand(int expectedRemaining) | public IoBuffer | fill(byte value, int size) | public IoBuffer | fill(int size) | public IoBuffer | fillAndReset(byte value, int size) | public IoBuffer | fillAndReset(int size) | public IoBuffer | flip() | public void | free() | public byte | get() | public byte | get(int index) | public IoBuffer | get(byte[] dst, int offset, int length) | public IoBuffer | get(byte[] dst) | public char | getChar() | public char | getChar(int index) | public double | getDouble() | public double | getDouble(int index) | public E | getEnum(Class<E> enumClass) | public E | getEnum(int index, Class<E> enumClass) | public E | getEnumInt(Class<E> enumClass) | public E | getEnumInt(int index, Class<E> enumClass) | public EnumSet<E> | getEnumSet(Class<E> enumClass) | public EnumSet<E> | getEnumSet(int index, Class<E> enumClass) | public EnumSet<E> | getEnumSetInt(Class<E> enumClass) | public EnumSet<E> | getEnumSetInt(int index, Class<E> enumClass) | public EnumSet<E> | getEnumSetLong(Class<E> enumClass) | public EnumSet<E> | getEnumSetLong(int index, Class<E> enumClass) | public EnumSet<E> | getEnumSetShort(Class<E> enumClass) | public EnumSet<E> | getEnumSetShort(int index, Class<E> enumClass) | public E | getEnumShort(Class<E> enumClass) | public E | getEnumShort(int index, Class<E> enumClass) | public float | getFloat() | public float | getFloat(int index) | public String | getHexDump() | public String | getHexDump(int lengthLimit) | public int | getInt() | public int | getInt(int index) | public long | getLong() | public long | getLong(int index) | public int | getMediumInt() | public int | getMediumInt(int index) | public Object | getObject() | public Object | getObject(ClassLoader classLoader) | public IoBuffer | getParentBuffer() Returns the parent buffer that this buffer wrapped. | public String | getPrefixedString(CharsetDecoder decoder) | public String | getPrefixedString(int prefixLength, CharsetDecoder decoder) | public short | getShort() | public short | getShort(int index) | public IoBuffer | getSlice(int index, int length) | public IoBuffer | getSlice(int length) | public String | getString(int fieldSize, CharsetDecoder decoder) | public String | getString(CharsetDecoder decoder) | public short | getUnsigned() | public short | getUnsigned(int index) | public long | getUnsignedInt() | public long | getUnsignedInt(int index) | public int | getUnsignedMediumInt() | public int | getUnsignedMediumInt(int index) | public int | getUnsignedShort() | public int | getUnsignedShort(int index) | public boolean | hasArray() | public boolean | hasRemaining() | public int | hashCode() | public int | indexOf(byte b) | public boolean | isAutoExpand() | public boolean | isAutoShrink() | public boolean | isDerived() | public boolean | isDirect() | public boolean | isReadOnly() | public int | limit() | public IoBuffer | limit(int newLimit) | public IoBuffer | mark() | public int | markValue() | public int | minimumCapacity() | public IoBuffer | minimumCapacity(int minimumCapacity) | public ByteOrder | order() | public IoBuffer | order(ByteOrder bo) | public int | position() | public IoBuffer | position(int newPosition) | public boolean | prefixedDataAvailable(int prefixLength) | public boolean | prefixedDataAvailable(int prefixLength, int maxDataLength) | public IoBuffer | put(byte b) | public IoBuffer | put(int index, byte b) | public IoBuffer | put(IoBuffer src) | public IoBuffer | put(ByteBuffer src) | public IoBuffer | put(byte[] src, int offset, int length) | public IoBuffer | put(byte[] src) | public IoBuffer | putChar(char value) | public IoBuffer | putChar(int index, char value) | public IoBuffer | putDouble(double value) | public IoBuffer | putDouble(int index, double value) | public IoBuffer | putEnum(Enum> e) | public IoBuffer | putEnum(int index, Enum> e) | public IoBuffer | putEnumInt(Enum> e) | public IoBuffer | putEnumInt(int index, Enum> e) | public IoBuffer | putEnumSet(Set<E> set) | public IoBuffer | putEnumSet(int index, Set<E> set) | public IoBuffer | putEnumSetInt(Set<E> set) | public IoBuffer | putEnumSetInt(int index, Set<E> set) | public IoBuffer | putEnumSetLong(Set<E> set) | public IoBuffer | putEnumSetLong(int index, Set<E> set) | public IoBuffer | putEnumSetShort(Set<E> set) | public IoBuffer | putEnumSetShort(int index, Set<E> set) | public IoBuffer | putEnumShort(Enum> e) | public IoBuffer | putEnumShort(int index, Enum> e) | public IoBuffer | putFloat(float value) | public IoBuffer | putFloat(int index, float value) | public IoBuffer | putInt(int value) | public IoBuffer | putInt(int index, int value) | public IoBuffer | putLong(long value) | public IoBuffer | putLong(int index, long value) | public IoBuffer | putMediumInt(int value) | public IoBuffer | putMediumInt(int index, int value) | public IoBuffer | putObject(Object o) | public IoBuffer | putPrefixedString(CharSequence in, CharsetEncoder encoder) | public IoBuffer | putPrefixedString(CharSequence in, int prefixLength, CharsetEncoder encoder) | public IoBuffer | putPrefixedString(CharSequence in, int prefixLength, int padding, CharsetEncoder encoder) | public IoBuffer | putPrefixedString(CharSequence in, int prefixLength, int padding, byte padValue, CharsetEncoder encoder) | public IoBuffer | putShort(short value) | public IoBuffer | putShort(int index, short value) | public IoBuffer | putString(CharSequence in, int fieldSize, CharsetEncoder encoder) | public IoBuffer | putString(CharSequence in, CharsetEncoder encoder) | public int | remaining() | public IoBuffer | reset() | public IoBuffer | rewind() | public IoBuffer | setAutoExpand(boolean autoExpand) | public IoBuffer | setAutoShrink(boolean autoShrink) | public IoBuffer | shrink() | public IoBuffer | skip(int size) | public IoBuffer | slice() | public IoBuffer | sweep() | public IoBuffer | sweep(byte value) | public String | toString() |
IoBufferWrapper | protected IoBufferWrapper(IoBuffer buf)(Code) | | Create a new instance.
Parameters: buf - the buffer to be proxied |
array | public byte[] array()(Code) | | |
arrayOffset | public int arrayOffset()(Code) | | |
asCharBuffer | public CharBuffer asCharBuffer()(Code) | | |
asDoubleBuffer | public DoubleBuffer asDoubleBuffer()(Code) | | |
asFloatBuffer | public FloatBuffer asFloatBuffer()(Code) | | |
asIntBuffer | public IntBuffer asIntBuffer()(Code) | | |
asLongBuffer | public LongBuffer asLongBuffer()(Code) | | |
asShortBuffer | public ShortBuffer asShortBuffer()(Code) | | |
buf | public ByteBuffer buf()(Code) | | |
capacity | public int capacity()(Code) | | |
get | public byte get(int index)(Code) | | |
getChar | public char getChar()(Code) | | |
getChar | public char getChar(int index)(Code) | | |
getDouble | public double getDouble()(Code) | | |
getDouble | public double getDouble(int index)(Code) | | |
getEnum | public E getEnum(int index, Class<E> enumClass)(Code) | | |
getEnumInt | public E getEnumInt(Class<E> enumClass)(Code) | | |
getEnumInt | public E getEnumInt(int index, Class<E> enumClass)(Code) | | |
getEnumShort | public E getEnumShort(Class<E> enumClass)(Code) | | |
getEnumShort | public E getEnumShort(int index, Class<E> enumClass)(Code) | | |
getFloat | public float getFloat()(Code) | | |
getFloat | public float getFloat(int index)(Code) | | |
getInt | public int getInt()(Code) | | |
getInt | public int getInt(int index)(Code) | | |
getLong | public long getLong()(Code) | | |
getLong | public long getLong(int index)(Code) | | |
getMediumInt | public int getMediumInt()(Code) | | |
getMediumInt | public int getMediumInt(int index)(Code) | | |
getParentBuffer | public IoBuffer getParentBuffer()(Code) | | Returns the parent buffer that this buffer wrapped.
|
getPrefixedString | public String getPrefixedString(CharsetDecoder decoder) throws CharacterCodingException(Code) | | |
getPrefixedString | public String getPrefixedString(int prefixLength, CharsetDecoder decoder) throws CharacterCodingException(Code) | | |
getShort | public short getShort()(Code) | | |
getShort | public short getShort(int index)(Code) | | |
getString | public String getString(int fieldSize, CharsetDecoder decoder) throws CharacterCodingException(Code) | | |
getString | public String getString(CharsetDecoder decoder) throws CharacterCodingException(Code) | | |
getUnsigned | public short getUnsigned()(Code) | | |
getUnsigned | public short getUnsigned(int index)(Code) | | |
getUnsignedInt | public long getUnsignedInt()(Code) | | |
getUnsignedInt | public long getUnsignedInt(int index)(Code) | | |
getUnsignedMediumInt | public int getUnsignedMediumInt()(Code) | | |
getUnsignedMediumInt | public int getUnsignedMediumInt(int index)(Code) | | |
getUnsignedShort | public int getUnsignedShort()(Code) | | |
getUnsignedShort | public int getUnsignedShort(int index)(Code) | | |
hasArray | public boolean hasArray()(Code) | | |
hasRemaining | public boolean hasRemaining()(Code) | | |
hashCode | public int hashCode()(Code) | | |
indexOf | public int indexOf(byte b)(Code) | | |
isAutoExpand | public boolean isAutoExpand()(Code) | | |
isAutoShrink | public boolean isAutoShrink()(Code) | | |
isDerived | public boolean isDerived()(Code) | | |
isDirect | public boolean isDirect()(Code) | | |
isReadOnly | public boolean isReadOnly()(Code) | | |
markValue | public int markValue()(Code) | | |
minimumCapacity | public int minimumCapacity()(Code) | | |
minimumCapacity | public IoBuffer minimumCapacity(int minimumCapacity)(Code) | | |
position | public int position()(Code) | | |
prefixedDataAvailable | public boolean prefixedDataAvailable(int prefixLength)(Code) | | |
prefixedDataAvailable | public boolean prefixedDataAvailable(int prefixLength, int maxDataLength)(Code) | | |
putPrefixedString | public IoBuffer putPrefixedString(CharSequence in, int prefixLength, CharsetEncoder encoder) throws CharacterCodingException(Code) | | |
putPrefixedString | public IoBuffer putPrefixedString(CharSequence in, int prefixLength, int padding, CharsetEncoder encoder) throws CharacterCodingException(Code) | | |
putPrefixedString | public IoBuffer putPrefixedString(CharSequence in, int prefixLength, int padding, byte padValue, CharsetEncoder encoder) throws CharacterCodingException(Code) | | |
remaining | public int remaining()(Code) | | |
Methods inherited from org.apache.mina.common.IoBuffer | public static IoBuffer allocate(int capacity)(Code)(Java Doc) public static IoBuffer allocate(int capacity, boolean direct)(Code)(Java Doc) abstract public byte[] array()(Code)(Java Doc) abstract public int arrayOffset()(Code)(Java Doc) abstract public CharBuffer asCharBuffer()(Code)(Java Doc) abstract public DoubleBuffer asDoubleBuffer()(Code)(Java Doc) abstract public FloatBuffer asFloatBuffer()(Code)(Java Doc) abstract public InputStream asInputStream()(Code)(Java Doc) abstract public IntBuffer asIntBuffer()(Code)(Java Doc) abstract public LongBuffer asLongBuffer()(Code)(Java Doc) abstract public OutputStream asOutputStream()(Code)(Java Doc) abstract public IoBuffer asReadOnlyBuffer()(Code)(Java Doc) abstract public ShortBuffer asShortBuffer()(Code)(Java Doc) abstract public ByteBuffer buf()(Code)(Java Doc) abstract public int capacity()(Code)(Java Doc) abstract public IoBuffer capacity(int newCapacity)(Code)(Java Doc) abstract public IoBuffer clear()(Code)(Java Doc) abstract public IoBuffer compact()(Code)(Java Doc) abstract public IoBuffer duplicate()(Code)(Java Doc) abstract public IoBuffer expand(int expectedRemaining)(Code)(Java Doc) abstract public IoBuffer expand(int position, int expectedRemaining)(Code)(Java Doc) abstract public IoBuffer fill(byte value, int size)(Code)(Java Doc) abstract public IoBuffer fill(int size)(Code)(Java Doc) abstract public IoBuffer fillAndReset(byte value, int size)(Code)(Java Doc) abstract public IoBuffer fillAndReset(int size)(Code)(Java Doc) abstract public IoBuffer flip()(Code)(Java Doc) abstract public void free()(Code)(Java Doc) abstract public byte get()(Code)(Java Doc) abstract public byte get(int index)(Code)(Java Doc) abstract public IoBuffer get(byte[] dst, int offset, int length)(Code)(Java Doc) abstract public IoBuffer get(byte[] dst)(Code)(Java Doc) public static IoBufferAllocator getAllocator()(Code)(Java Doc) abstract public char getChar()(Code)(Java Doc) abstract public char getChar(int index)(Code)(Java Doc) abstract public double getDouble()(Code)(Java Doc) abstract public double getDouble(int index)(Code)(Java Doc) abstract public E getEnum(Class<E> enumClass)(Code)(Java Doc) abstract public E getEnum(int index, Class<E> enumClass)(Code)(Java Doc) abstract public E getEnumInt(Class<E> enumClass)(Code)(Java Doc) abstract public E getEnumInt(int index, Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSet(Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSet(int index, Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetInt(Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetInt(int index, Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetLong(Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetLong(int index, Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetShort(Class<E> enumClass)(Code)(Java Doc) abstract public EnumSet<E> getEnumSetShort(int index, Class<E> enumClass)(Code)(Java Doc) abstract public E getEnumShort(Class<E> enumClass)(Code)(Java Doc) abstract public E getEnumShort(int index, Class<E> enumClass)(Code)(Java Doc) abstract public float getFloat()(Code)(Java Doc) abstract public float getFloat(int index)(Code)(Java Doc) abstract public String getHexDump()(Code)(Java Doc) abstract public String getHexDump(int lengthLimit)(Code)(Java Doc) abstract public int getInt()(Code)(Java Doc) abstract public int getInt(int index)(Code)(Java Doc) abstract public long getLong()(Code)(Java Doc) abstract public long getLong(int index)(Code)(Java Doc) abstract public int getMediumInt()(Code)(Java Doc) abstract public int getMediumInt(int index)(Code)(Java Doc) abstract public Object getObject() throws ClassNotFoundException(Code)(Java Doc) abstract public Object getObject(ClassLoader classLoader) throws ClassNotFoundException(Code)(Java Doc) abstract public String getPrefixedString(CharsetDecoder decoder) throws CharacterCodingException(Code)(Java Doc) abstract public String getPrefixedString(int prefixLength, CharsetDecoder decoder) throws CharacterCodingException(Code)(Java Doc) abstract public short getShort()(Code)(Java Doc) abstract public short getShort(int index)(Code)(Java Doc) abstract public IoBuffer getSlice(int index, int length)(Code)(Java Doc) abstract public IoBuffer getSlice(int length)(Code)(Java Doc) abstract public String getString(CharsetDecoder decoder) throws CharacterCodingException(Code)(Java Doc) abstract public String getString(int fieldSize, CharsetDecoder decoder) throws CharacterCodingException(Code)(Java Doc) abstract public short getUnsigned()(Code)(Java Doc) abstract public short getUnsigned(int index)(Code)(Java Doc) abstract public long getUnsignedInt()(Code)(Java Doc) abstract public long getUnsignedInt(int index)(Code)(Java Doc) abstract public int getUnsignedMediumInt()(Code)(Java Doc) abstract public int getUnsignedMediumInt(int index)(Code)(Java Doc) abstract public int getUnsignedShort()(Code)(Java Doc) abstract public int getUnsignedShort(int index)(Code)(Java Doc) abstract public boolean hasArray()(Code)(Java Doc) abstract public boolean hasRemaining()(Code)(Java Doc) abstract public int indexOf(byte b)(Code)(Java Doc) abstract public boolean isAutoExpand()(Code)(Java Doc) abstract public boolean isAutoShrink()(Code)(Java Doc) abstract public boolean isDerived()(Code)(Java Doc) abstract public boolean isDirect()(Code)(Java Doc) abstract public boolean isReadOnly()(Code)(Java Doc) public static boolean isUseDirectBuffer()(Code)(Java Doc) abstract public int limit()(Code)(Java Doc) abstract public IoBuffer limit(int newLimit)(Code)(Java Doc) abstract public IoBuffer mark()(Code)(Java Doc) abstract public int markValue()(Code)(Java Doc) abstract public int minimumCapacity()(Code)(Java Doc) abstract public IoBuffer minimumCapacity(int minimumCapacity)(Code)(Java Doc) protected static int normalizeCapacity(int requestedCapacity)(Code)(Java Doc) abstract public ByteOrder order()(Code)(Java Doc) abstract public IoBuffer order(ByteOrder bo)(Code)(Java Doc) abstract public int position()(Code)(Java Doc) abstract public IoBuffer position(int newPosition)(Code)(Java Doc) abstract public boolean prefixedDataAvailable(int prefixLength)(Code)(Java Doc) abstract public boolean prefixedDataAvailable(int prefixLength, int maxDataLength)(Code)(Java Doc) abstract public IoBuffer put(byte b)(Code)(Java Doc) abstract public IoBuffer put(int index, byte b)(Code)(Java Doc) abstract public IoBuffer put(ByteBuffer src)(Code)(Java Doc) abstract public IoBuffer put(IoBuffer src)(Code)(Java Doc) abstract public IoBuffer put(byte[] src, int offset, int length)(Code)(Java Doc) abstract public IoBuffer put(byte[] src)(Code)(Java Doc) abstract public IoBuffer putChar(char value)(Code)(Java Doc) abstract public IoBuffer putChar(int index, char value)(Code)(Java Doc) abstract public IoBuffer putDouble(double value)(Code)(Java Doc) abstract public IoBuffer putDouble(int index, double value)(Code)(Java Doc) abstract public IoBuffer putEnum(Enum> e)(Code)(Java Doc) abstract public IoBuffer putEnum(int index, Enum> e)(Code)(Java Doc) abstract public IoBuffer putEnumInt(Enum> e)(Code)(Java Doc) abstract public IoBuffer putEnumInt(int index, Enum> e)(Code)(Java Doc) abstract public IoBuffer putEnumSet(Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSet(int index, Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetInt(Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetInt(int index, Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetLong(Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetLong(int index, Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetShort(Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumSetShort(int index, Set<E> set)(Code)(Java Doc) abstract public IoBuffer putEnumShort(Enum> e)(Code)(Java Doc) abstract public IoBuffer putEnumShort(int index, Enum> e)(Code)(Java Doc) abstract public IoBuffer putFloat(float value)(Code)(Java Doc) abstract public IoBuffer putFloat(int index, float value)(Code)(Java Doc) abstract public IoBuffer putInt(int value)(Code)(Java Doc) abstract public IoBuffer putInt(int index, int value)(Code)(Java Doc) abstract public IoBuffer putLong(long value)(Code)(Java Doc) abstract public IoBuffer putLong(int index, long value)(Code)(Java Doc) abstract public IoBuffer putMediumInt(int value)(Code)(Java Doc) abstract public IoBuffer putMediumInt(int index, int value)(Code)(Java Doc) abstract public IoBuffer putObject(Object o)(Code)(Java Doc) abstract public IoBuffer putPrefixedString(CharSequence in, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public IoBuffer putPrefixedString(CharSequence in, int prefixLength, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public IoBuffer putPrefixedString(CharSequence in, int prefixLength, int padding, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public IoBuffer putPrefixedString(CharSequence val, int prefixLength, int padding, byte padValue, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public IoBuffer putShort(short value)(Code)(Java Doc) abstract public IoBuffer putShort(int index, short value)(Code)(Java Doc) abstract public IoBuffer putString(CharSequence val, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public IoBuffer putString(CharSequence val, int fieldSize, CharsetEncoder encoder) throws CharacterCodingException(Code)(Java Doc) abstract public int remaining()(Code)(Java Doc) abstract public IoBuffer reset()(Code)(Java Doc) abstract public IoBuffer rewind()(Code)(Java Doc) public static void setAllocator(IoBufferAllocator newAllocator)(Code)(Java Doc) abstract public IoBuffer setAutoExpand(boolean autoExpand)(Code)(Java Doc) abstract public IoBuffer setAutoShrink(boolean autoShrink)(Code)(Java Doc) public static void setUseDirectBuffer(boolean useDirectBuffer)(Code)(Java Doc) abstract public IoBuffer shrink()(Code)(Java Doc) abstract public IoBuffer skip(int size)(Code)(Java Doc) abstract public IoBuffer slice()(Code)(Java Doc) abstract public IoBuffer sweep()(Code)(Java Doc) abstract public IoBuffer sweep(byte value)(Code)(Java Doc) public static IoBuffer wrap(ByteBuffer nioBuffer)(Code)(Java Doc) public static IoBuffer wrap(byte[] byteArray)(Code)(Java Doc) public static IoBuffer wrap(byte[] byteArray, int offset, int length)(Code)(Java Doc)
|
|
|