SlicedByteBuf extends AbstractDerivedByteBuf { @Override public ByteBuffer internalNioBuffer(int index, int length) { return nioBuffer(index, length); } SlicedByteBuf(ByteBuf buffer, int index, int length); @Override ByteBuf unwrap(); @Override ByteBufAllocator alloc(); @Override ByteOrder order(); @Override boolean isDirect(); @Override int capacity(); @Override ByteBuf capacity(int newCapacity); @Override boolean hasArray(); @Override byte[] array(); @Override int arrayOffset(); @Override boolean hasMemoryAddress(); @Override long memoryAddress(); @Override ByteBuf duplicate(); @Override ByteBuf copy(int index, int length); @Override ByteBuf slice(int index, int length); @Override ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length); @Override ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length); @Override ByteBuf getBytes(int index, ByteBuffer dst); @Override ByteBuf setBytes(int index, byte[] src, int srcIndex, int length); @Override ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length); @Override ByteBuf setBytes(int index, ByteBuffer src); @Override ByteBuf getBytes(int index, OutputStream out, int length); @Override int getBytes(int index, GatheringByteChannel out, int length); @Override int setBytes(int index, InputStream in, int length); @Override int setBytes(int index, ScatteringByteChannel in, int length); @Override int nioBufferCount(); @Override ByteBuffer nioBuffer(int index, int length); @Override ByteBuffer[] nioBuffers(int index, int length); @Override ByteBuffer internalNioBuffer(int index, int length); @Override int forEachByte(int index, int length, ByteProcessor processor); @Override int forEachByteDesc(int index, int length, ByteProcessor processor);  }
@Test(expected = IndexOutOfBoundsException.class) @Override public void testInternalNioBuffer() { super.testInternalNioBuffer(); }