public class Data extends Object implements Serializable
| Constructor and Description |
|---|
Data(byte[] data) |
Data(byte[] data,
int offset,
int length,
PeerAddress originator) |
Data(byte[] data,
PeerAddress originator) |
Data(Object object) |
Data(Object object,
PeerAddress originator) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreated() |
byte[] |
getData() |
long |
getExpirationMillis() |
Number160 |
getHash() |
int |
getLength() |
Object |
getObject() |
int |
getOffset() |
PeerAddress |
getPeerAddress() |
PublicKey |
getPublicKey() |
int |
getTTLSeconds() |
boolean |
isDirectReplication() |
boolean |
isProtectedEntry() |
void |
setDirectReplication(boolean directReplication) |
void |
setPeerAddress(PeerAddress originator) |
void |
setProtectedEntry(boolean protectedEntry) |
void |
setPublicKey(PublicKey publicKey) |
void |
setTTLSeconds(int ttlSeconds) |
String |
toString() |
public Data(Object object) throws IOException
IOExceptionpublic Data(Object object, PeerAddress originator) throws IOException
IOExceptionpublic Data(byte[] data)
public Data(byte[] data,
PeerAddress originator)
public Data(byte[] data,
int offset,
int length,
PeerAddress originator)
public byte[] getData()
public Object getObject() throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic long getCreated()
public int getTTLSeconds()
public void setTTLSeconds(int ttlSeconds)
public Number160 getHash()
public int getOffset()
public int getLength()
public long getExpirationMillis()
public boolean isProtectedEntry()
public void setProtectedEntry(boolean protectedEntry)
public void setDirectReplication(boolean directReplication)
public boolean isDirectReplication()
public PeerAddress getPeerAddress()
public void setPeerAddress(PeerAddress originator)
public void setPublicKey(PublicKey publicKey)
public PublicKey getPublicKey()
Copyright © 2011. All Rights Reserved.