@Test(expected = InvalidMarkException.class) public void resetWithoutMarkShouldThrowException() { IoBufferEx buf = allocator.wrap(ByteBuffer.wrap(DATA), flags); buf.reset(); }
@Override public final AbstractIoBufferEx reset() { if (mark < 0) { throw new InvalidMarkException(); } buf().position(mark); return this; }
AbstractIoBufferEx extends IoBuffer implements IoBufferEx { @Override public final AbstractIoBufferEx reset() { if (mark < 0) { throw new InvalidMarkException(); } buf().position(mark); return this; } }
AbstractIoBufferEx extends IoBuffer implements IoBufferEx { @Override public final AbstractIoBufferEx reset() { if (mark < 0) { throw new InvalidMarkException(); } buf().position(mark); return this; } protected  AbstractIoBufferEx(int initialCapacity); protected  AbstractIoBufferEx(AbstractIoBufferEx parent); }
AbstractIoBufferEx extends IoBuffer implements IoBufferEx { @Override public final AbstractIoBufferEx reset() { if (mark < 0) { throw new InvalidMarkException(); } buf().position(mark); return this; } protected  AbstractIoBufferEx(int initialCapacity); protected  AbstractIoBufferEx(AbstractIoBufferEx parent); @Override IoBuffer asIoBuffer(); @Override final boolean isDirect(); @Override final boolean isReadOnly(); @Override final int minimumCapacity(); @Override AbstractIoBufferEx minimumCapacity(int minimumCapacity); @Override final int capacity(); @Override AbstractIoBufferEx capacity(int newCapacity); @Override AbstractIoBufferEx capacity(int newCapacity, IoBufferAllocatorEx<?> reallocator); @Override final boolean isAutoExpand(); @Override final boolean isAutoShrink(); @Override final boolean isDerived(); @Override AbstractIoBufferEx setAutoExpand(boolean autoExpand); @Override AbstractIoBufferEx setAutoExpander(IoBufferAllocatorEx<?> autoExpander); @Override AbstractIoBufferEx setAutoShrink(boolean autoShrink); @Override AbstractIoBufferEx setAutoShrinker(IoBufferAllocatorEx<?> autoShrinker); @Override AbstractIoBufferEx expand(int expectedRemaining); @Override AbstractIoBufferEx expand(int pos, int expectedRemaining); @Override AbstractIoBufferEx expand(int expectedRemaining, IoBufferAllocatorEx<?> expander); @Override AbstractIoBufferEx expand(int pos, int expectedRemaining, IoBufferAllocatorEx<?> expander); @Override AbstractIoBufferEx shrink(); @Override AbstractIoBufferEx shrink(IoBufferAllocatorEx<?> shrinker); @Override final int position(); @Override AbstractIoBufferEx position(int newPosition); @Override final int limit(); @Override AbstractIoBufferEx limit(int newLimit); @Override AbstractIoBufferEx mark(); @Override final int markValue(); @Override final AbstractIoBufferEx reset(); @Override final AbstractIoBufferEx clear(); @Override final AbstractIoBufferEx sweep(); @Override final AbstractIoBufferEx sweep(byte value); @Override final AbstractIoBufferEx flip(); @Override final AbstractIoBufferEx rewind(); @Override final int remaining(); @Override final boolean hasRemaining(); @Override final byte get(); @Override final short getUnsigned(); @Override final AbstractIoBufferEx put(byte b); @Override final byte get(int index); @Override final short getUnsigned(int index); @Override final AbstractIoBufferEx put(int index, byte b); @Override final AbstractIoBufferEx get(byte[] dst, int offset, int length); @Override final AbstractIoBufferEx put(ByteBuffer src); @Override final AbstractIoBufferEx put(byte[] src, int offset, int length); @Override final AbstractIoBufferEx compact(); @Override final ByteOrder order(); @Override final AbstractIoBufferEx order(ByteOrder bo); @Override final char getChar(); @Override AbstractIoBufferEx putChar(char value); @Override final char getChar(int index); @Override AbstractIoBufferEx putChar(int index, char value); @Override boolean isShared(); @Override final CharBuffer asCharBuffer(); @Override final short getShort(); @Override AbstractIoBufferEx putShort(short value); @Override final short getShort(int index); @Override AbstractIoBufferEx putShort(int index, short value); @Override final ShortBuffer asShortBuffer(); @Override final int getInt(); @Override AbstractIoBufferEx putInt(int value); @Override final int getInt(int index); @Override AbstractIoBufferEx putInt(int index, int value); @Override final IntBuffer asIntBuffer(); @Override final long getLong(); @Override AbstractIoBufferEx putLong(long value); @Override final long getLong(int index); @Override AbstractIoBufferEx putLong(int index, long value); @Override final LongBuffer asLongBuffer(); @Override final float getFloat(); @Override AbstractIoBufferEx putFloat(float value); @Override final float getFloat(int index); @Override AbstractIoBufferEx putFloat(int index, float value); @Override final FloatBuffer asFloatBuffer(); @Override final double getDouble(); @Override AbstractIoBufferEx putDouble(double value); @Override final double getDouble(int index); @Override AbstractIoBufferEx putDouble(int index, double value); @Override final DoubleBuffer asDoubleBuffer(); @Override final AbstractIoBufferEx asReadOnlyBuffer(); @Override final AbstractIoBufferEx asSharedBuffer(); @Override final AbstractIoBufferEx asUnsharedBuffer(); @Override final AbstractIoBufferEx duplicate(); @Override final AbstractIoBufferEx slice(); @Override AbstractIoBufferEx getSlice(int index, int length); @Override AbstractIoBufferEx getSlice(int length); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(IoBuffer that); @Override String toString(); @Override AbstractIoBufferEx get(byte[] dst); @Override AbstractIoBufferEx put(IoBufferEx src); @Override AbstractIoBufferEx put(IoBuffer src); @Override AbstractIoBufferEx put(byte[] src); @Override int getUnsignedShort(); @Override int getUnsignedShort(int index); @Override long getUnsignedInt(); @Override int getMediumInt(); @Override int getUnsignedMediumInt(); @Override int getMediumInt(int index); @Override int getUnsignedMediumInt(int index); @Override AbstractIoBufferEx putMediumInt(int value); @Override AbstractIoBufferEx putMediumInt(int index, int value); @Override long getUnsignedInt(int index); @Override InputStream asInputStream(); @Override OutputStream asOutputStream(); @Override String getHexDump(); @Override String getHexDump(int lengthLimit); @Override String getString(CharsetDecoder decoder); @Override String getString(int fieldSize, CharsetDecoder decoder); @Override AbstractIoBufferEx putString(CharSequence val, CharsetEncoder encoder); @Override AbstractIoBufferEx putString(CharSequence val, int fieldSize,
            CharsetEncoder encoder); @Override String getPrefixedString(CharsetDecoder decoder); @Override String getPrefixedString(int prefixLength, CharsetDecoder decoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, int prefixLength,
            CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, int prefixLength,
            int padding, CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence val, int prefixLength,
            int padding, byte padValue, CharsetEncoder encoder); @Override Object getObject(); @Override Object getObject(final ClassLoader classLoader); @Override AbstractIoBufferEx putObject(Object o); @Override boolean prefixedDataAvailable(int prefixLength); @Override boolean prefixedDataAvailable(int prefixLength, int maxDataLength); @Override int indexOf(byte b); @Override AbstractIoBufferEx skip(int size); @Override AbstractIoBufferEx fill(byte value, int size); @Override AbstractIoBufferEx fillAndReset(byte value, int size); @Override AbstractIoBufferEx fill(int size); @Override AbstractIoBufferEx fillAndReset(int size); @Override E getEnum(Class<E> enumClass); @Override E getEnum(int index, Class<E> enumClass); @Override E getEnumShort(Class<E> enumClass); @Override E getEnumShort(int index, Class<E> enumClass); @Override E getEnumInt(Class<E> enumClass); @Override E getEnumInt(int index, Class<E> enumClass); @Override AbstractIoBufferEx putEnum(Enum<?> e); @Override AbstractIoBufferEx putEnum(int index, Enum<?> e); @Override AbstractIoBufferEx putEnumShort(Enum<?> e); @Override AbstractIoBufferEx putEnumShort(int index, Enum<?> e); @Override AbstractIoBufferEx putEnumInt(Enum<?> e); @Override AbstractIoBufferEx putEnumInt(int index, Enum<?> e); @Override EnumSet<E> getEnumSet(Class<E> enumClass); @Override EnumSet<E> getEnumSet(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetShort(Class<E> enumClass); @Override EnumSet<E> getEnumSetShort(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetInt(Class<E> enumClass); @Override EnumSet<E> getEnumSetInt(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetLong(Class<E> enumClass); @Override EnumSet<E> getEnumSetLong(int index,
            Class<E> enumClass); @Override AbstractIoBufferEx putEnumSet(Set<E> set); @Override AbstractIoBufferEx putEnumSet(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetShort(Set<E> set); @Override AbstractIoBufferEx putEnumSetShort(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetInt(Set<E> set); @Override AbstractIoBufferEx putEnumSetInt(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetLong(Set<E> set); @Override AbstractIoBufferEx putEnumSetLong(int index, Set<E> set); }
AbstractIoBufferEx extends IoBuffer implements IoBufferEx { @Override public final AbstractIoBufferEx reset() { if (mark < 0) { throw new InvalidMarkException(); } buf().position(mark); return this; } protected  AbstractIoBufferEx(int initialCapacity); protected  AbstractIoBufferEx(AbstractIoBufferEx parent); @Override IoBuffer asIoBuffer(); @Override final boolean isDirect(); @Override final boolean isReadOnly(); @Override final int minimumCapacity(); @Override AbstractIoBufferEx minimumCapacity(int minimumCapacity); @Override final int capacity(); @Override AbstractIoBufferEx capacity(int newCapacity); @Override AbstractIoBufferEx capacity(int newCapacity, IoBufferAllocatorEx<?> reallocator); @Override final boolean isAutoExpand(); @Override final boolean isAutoShrink(); @Override final boolean isDerived(); @Override AbstractIoBufferEx setAutoExpand(boolean autoExpand); @Override AbstractIoBufferEx setAutoExpander(IoBufferAllocatorEx<?> autoExpander); @Override AbstractIoBufferEx setAutoShrink(boolean autoShrink); @Override AbstractIoBufferEx setAutoShrinker(IoBufferAllocatorEx<?> autoShrinker); @Override AbstractIoBufferEx expand(int expectedRemaining); @Override AbstractIoBufferEx expand(int pos, int expectedRemaining); @Override AbstractIoBufferEx expand(int expectedRemaining, IoBufferAllocatorEx<?> expander); @Override AbstractIoBufferEx expand(int pos, int expectedRemaining, IoBufferAllocatorEx<?> expander); @Override AbstractIoBufferEx shrink(); @Override AbstractIoBufferEx shrink(IoBufferAllocatorEx<?> shrinker); @Override final int position(); @Override AbstractIoBufferEx position(int newPosition); @Override final int limit(); @Override AbstractIoBufferEx limit(int newLimit); @Override AbstractIoBufferEx mark(); @Override final int markValue(); @Override final AbstractIoBufferEx reset(); @Override final AbstractIoBufferEx clear(); @Override final AbstractIoBufferEx sweep(); @Override final AbstractIoBufferEx sweep(byte value); @Override final AbstractIoBufferEx flip(); @Override final AbstractIoBufferEx rewind(); @Override final int remaining(); @Override final boolean hasRemaining(); @Override final byte get(); @Override final short getUnsigned(); @Override final AbstractIoBufferEx put(byte b); @Override final byte get(int index); @Override final short getUnsigned(int index); @Override final AbstractIoBufferEx put(int index, byte b); @Override final AbstractIoBufferEx get(byte[] dst, int offset, int length); @Override final AbstractIoBufferEx put(ByteBuffer src); @Override final AbstractIoBufferEx put(byte[] src, int offset, int length); @Override final AbstractIoBufferEx compact(); @Override final ByteOrder order(); @Override final AbstractIoBufferEx order(ByteOrder bo); @Override final char getChar(); @Override AbstractIoBufferEx putChar(char value); @Override final char getChar(int index); @Override AbstractIoBufferEx putChar(int index, char value); @Override boolean isShared(); @Override final CharBuffer asCharBuffer(); @Override final short getShort(); @Override AbstractIoBufferEx putShort(short value); @Override final short getShort(int index); @Override AbstractIoBufferEx putShort(int index, short value); @Override final ShortBuffer asShortBuffer(); @Override final int getInt(); @Override AbstractIoBufferEx putInt(int value); @Override final int getInt(int index); @Override AbstractIoBufferEx putInt(int index, int value); @Override final IntBuffer asIntBuffer(); @Override final long getLong(); @Override AbstractIoBufferEx putLong(long value); @Override final long getLong(int index); @Override AbstractIoBufferEx putLong(int index, long value); @Override final LongBuffer asLongBuffer(); @Override final float getFloat(); @Override AbstractIoBufferEx putFloat(float value); @Override final float getFloat(int index); @Override AbstractIoBufferEx putFloat(int index, float value); @Override final FloatBuffer asFloatBuffer(); @Override final double getDouble(); @Override AbstractIoBufferEx putDouble(double value); @Override final double getDouble(int index); @Override AbstractIoBufferEx putDouble(int index, double value); @Override final DoubleBuffer asDoubleBuffer(); @Override final AbstractIoBufferEx asReadOnlyBuffer(); @Override final AbstractIoBufferEx asSharedBuffer(); @Override final AbstractIoBufferEx asUnsharedBuffer(); @Override final AbstractIoBufferEx duplicate(); @Override final AbstractIoBufferEx slice(); @Override AbstractIoBufferEx getSlice(int index, int length); @Override AbstractIoBufferEx getSlice(int length); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(IoBuffer that); @Override String toString(); @Override AbstractIoBufferEx get(byte[] dst); @Override AbstractIoBufferEx put(IoBufferEx src); @Override AbstractIoBufferEx put(IoBuffer src); @Override AbstractIoBufferEx put(byte[] src); @Override int getUnsignedShort(); @Override int getUnsignedShort(int index); @Override long getUnsignedInt(); @Override int getMediumInt(); @Override int getUnsignedMediumInt(); @Override int getMediumInt(int index); @Override int getUnsignedMediumInt(int index); @Override AbstractIoBufferEx putMediumInt(int value); @Override AbstractIoBufferEx putMediumInt(int index, int value); @Override long getUnsignedInt(int index); @Override InputStream asInputStream(); @Override OutputStream asOutputStream(); @Override String getHexDump(); @Override String getHexDump(int lengthLimit); @Override String getString(CharsetDecoder decoder); @Override String getString(int fieldSize, CharsetDecoder decoder); @Override AbstractIoBufferEx putString(CharSequence val, CharsetEncoder encoder); @Override AbstractIoBufferEx putString(CharSequence val, int fieldSize,
            CharsetEncoder encoder); @Override String getPrefixedString(CharsetDecoder decoder); @Override String getPrefixedString(int prefixLength, CharsetDecoder decoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, int prefixLength,
            CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence in, int prefixLength,
            int padding, CharsetEncoder encoder); @Override AbstractIoBufferEx putPrefixedString(CharSequence val, int prefixLength,
            int padding, byte padValue, CharsetEncoder encoder); @Override Object getObject(); @Override Object getObject(final ClassLoader classLoader); @Override AbstractIoBufferEx putObject(Object o); @Override boolean prefixedDataAvailable(int prefixLength); @Override boolean prefixedDataAvailable(int prefixLength, int maxDataLength); @Override int indexOf(byte b); @Override AbstractIoBufferEx skip(int size); @Override AbstractIoBufferEx fill(byte value, int size); @Override AbstractIoBufferEx fillAndReset(byte value, int size); @Override AbstractIoBufferEx fill(int size); @Override AbstractIoBufferEx fillAndReset(int size); @Override E getEnum(Class<E> enumClass); @Override E getEnum(int index, Class<E> enumClass); @Override E getEnumShort(Class<E> enumClass); @Override E getEnumShort(int index, Class<E> enumClass); @Override E getEnumInt(Class<E> enumClass); @Override E getEnumInt(int index, Class<E> enumClass); @Override AbstractIoBufferEx putEnum(Enum<?> e); @Override AbstractIoBufferEx putEnum(int index, Enum<?> e); @Override AbstractIoBufferEx putEnumShort(Enum<?> e); @Override AbstractIoBufferEx putEnumShort(int index, Enum<?> e); @Override AbstractIoBufferEx putEnumInt(Enum<?> e); @Override AbstractIoBufferEx putEnumInt(int index, Enum<?> e); @Override EnumSet<E> getEnumSet(Class<E> enumClass); @Override EnumSet<E> getEnumSet(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetShort(Class<E> enumClass); @Override EnumSet<E> getEnumSetShort(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetInt(Class<E> enumClass); @Override EnumSet<E> getEnumSetInt(int index,
            Class<E> enumClass); @Override EnumSet<E> getEnumSetLong(Class<E> enumClass); @Override EnumSet<E> getEnumSetLong(int index,
            Class<E> enumClass); @Override AbstractIoBufferEx putEnumSet(Set<E> set); @Override AbstractIoBufferEx putEnumSet(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetShort(Set<E> set); @Override AbstractIoBufferEx putEnumSetShort(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetInt(Set<E> set); @Override AbstractIoBufferEx putEnumSetInt(int index, Set<E> set); @Override AbstractIoBufferEx putEnumSetLong(Set<E> set); @Override AbstractIoBufferEx putEnumSetLong(int index, Set<E> set);  }