Class ChannelBufferByteInput
- java.lang.Object
-
- org.jboss.netty.handler.codec.marshalling.ChannelBufferByteInput
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.jboss.marshalling.ByteInput
class ChannelBufferByteInput extends java.lang.Object implements org.jboss.marshalling.ByteInput
ByteInput
implementation which reads its data from aChannelBuffer
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelBuffer
buffer
-
Constructor Summary
Constructors Constructor Description ChannelBufferByteInput(ChannelBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
read()
int
read(byte[] array)
int
read(byte[] dst, int dstIndex, int length)
long
skip(long bytes)
-
-
-
Field Detail
-
buffer
private final ChannelBuffer buffer
-
-
Constructor Detail
-
ChannelBufferByteInput
public ChannelBufferByteInput(ChannelBuffer buffer)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Specified by:
available
in interfaceorg.jboss.marshalling.ByteInput
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in interfaceorg.jboss.marshalling.ByteInput
- Throws:
java.io.IOException
-
read
public int read(byte[] array) throws java.io.IOException
- Specified by:
read
in interfaceorg.jboss.marshalling.ByteInput
- Throws:
java.io.IOException
-
read
public int read(byte[] dst, int dstIndex, int length) throws java.io.IOException
- Specified by:
read
in interfaceorg.jboss.marshalling.ByteInput
- Throws:
java.io.IOException
-
skip
public long skip(long bytes) throws java.io.IOException
- Specified by:
skip
in interfaceorg.jboss.marshalling.ByteInput
- Throws:
java.io.IOException
-
-