Class ChannelBufferByteInput

java.lang.Object
org.jboss.netty.handler.codec.marshalling.ChannelBufferByteInput
All Implemented Interfaces:
Closeable, AutoCloseable, org.jboss.marshalling.ByteInput

class ChannelBufferByteInput extends Object implements org.jboss.marshalling.ByteInput
ByteInput implementation which reads its data from a ChannelBuffer
  • Field Details

  • Constructor Details

    • ChannelBufferByteInput

      public ChannelBufferByteInput(ChannelBuffer buffer)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • available

      public int available() throws IOException
      Specified by:
      available in interface org.jboss.marshalling.ByteInput
      Throws:
      IOException
    • read

      public int read() throws IOException
      Specified by:
      read in interface org.jboss.marshalling.ByteInput
      Throws:
      IOException
    • read

      public int read(byte[] array) throws IOException
      Specified by:
      read in interface org.jboss.marshalling.ByteInput
      Throws:
      IOException
    • read

      public int read(byte[] dst, int dstIndex, int length) throws IOException
      Specified by:
      read in interface org.jboss.marshalling.ByteInput
      Throws:
      IOException
    • skip

      public long skip(long bytes) throws IOException
      Specified by:
      skip in interface org.jboss.marshalling.ByteInput
      Throws:
      IOException