Constructor and Description |
---|
DataCodec() |
Modifier and Type | Method and Description |
---|---|
static Data |
createData(ByteBuffer[] byteBuffers,
int length,
int ttl,
boolean protectedEntry,
boolean fileReference,
PeerAddress originator) |
static Data |
decodeData(org.jboss.netty.buffer.ChannelBuffer buffer,
PeerAddress originator) |
static int |
encodeData(ProtocolChunked input,
Data data) |
public static int encodeData(ProtocolChunked input, Data data) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public static Data decodeData(org.jboss.netty.buffer.ChannelBuffer buffer, PeerAddress originator) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException
public static Data createData(ByteBuffer[] byteBuffers, int length, int ttl, boolean protectedEntry, boolean fileReference, PeerAddress originator)
Copyright © 2013. All Rights Reserved.