public class ProtocolChunkedInput extends Object implements org.jboss.netty.handler.stream.ChunkedInput, ProtocolChunked
Constructor and Description |
---|
ProtocolChunkedInput(org.jboss.netty.channel.ChannelHandlerContext ctx,
PrivateKey privateKey) |
Modifier and Type | Method and Description |
---|---|
void |
addMarkerForSignature() |
void |
close() |
void |
copyToCurrent(byte size) |
void |
copyToCurrent(byte[] byteArray) |
void |
copyToCurrent(byte[] array,
int offset,
int length) |
void |
copyToCurrent(org.jboss.netty.buffer.ChannelBuffer slice) |
void |
copyToCurrent(int size) |
void |
copyToCurrent(long long1) |
void |
copyToCurrent(short short1) |
void |
flush(boolean last) |
boolean |
hasNextChunk() |
boolean |
isEndOfInput() |
Object |
nextChunk() |
void |
resume() |
int |
size() |
void |
transferToCurrent(FileChannel inChannel,
long length) |
public ProtocolChunkedInput(org.jboss.netty.channel.ChannelHandlerContext ctx, PrivateKey privateKey) throws NoSuchAlgorithmException, InvalidKeyException
public boolean hasNextChunk() throws Exception
hasNextChunk
in interface org.jboss.netty.handler.stream.ChunkedInput
Exception
public Object nextChunk() throws Exception
nextChunk
in interface org.jboss.netty.handler.stream.ChunkedInput
Exception
public int size()
public void addMarkerForSignature()
public boolean isEndOfInput() throws Exception
isEndOfInput
in interface org.jboss.netty.handler.stream.ChunkedInput
Exception
public void close() throws Exception
close
in interface org.jboss.netty.handler.stream.ChunkedInput
Exception
public void resume()
public void copyToCurrent(byte[] byteArray)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(int size)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(byte size)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(long long1)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(short short1)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(org.jboss.netty.buffer.ChannelBuffer slice)
copyToCurrent
in interface ProtocolChunked
public void copyToCurrent(byte[] array, int offset, int length)
copyToCurrent
in interface ProtocolChunked
public void flush(boolean last)
public void transferToCurrent(FileChannel inChannel, long length) throws IOException
transferToCurrent
in interface ProtocolChunked
IOException
Copyright © 2013. All Rights Reserved.