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.ByteInputByteInputimplementation which reads its data from aChannelBuffer
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelBufferbuffer
-
Constructor Summary
Constructors Constructor Description ChannelBufferByteInput(ChannelBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] array)intread(byte[] dst, int dstIndex, int length)longskip(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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Specified by:
availablein interfaceorg.jboss.marshalling.ByteInput- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin interfaceorg.jboss.marshalling.ByteInput- Throws:
java.io.IOException
-
read
public int read(byte[] array) throws java.io.IOException- Specified by:
readin interfaceorg.jboss.marshalling.ByteInput- Throws:
java.io.IOException
-
read
public int read(byte[] dst, int dstIndex, int length) throws java.io.IOException- Specified by:
readin interfaceorg.jboss.marshalling.ByteInput- Throws:
java.io.IOException
-
skip
public long skip(long bytes) throws java.io.IOException- Specified by:
skipin interfaceorg.jboss.marshalling.ByteInput- Throws:
java.io.IOException
-
-