DataStructure
public class GarlicClove extends DataStructureImpl
コンストラクタ | 説明 |
---|---|
GarlicClove(I2PAppContext context) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
int |
estimateSize() |
|
Certificate |
getCertificate() |
|
long |
getCloveId() |
|
I2NPMessage |
getData() |
|
java.util.Date |
getExpiration() |
|
DeliveryInstructions |
getInstructions() |
|
int |
hashCode() |
|
int |
readBytes(byte[] source,
int offset) |
|
void |
readBytes(java.io.InputStream in) |
推奨されていません。
unused, use byte array method to avoid copying
|
void |
setCertificate(Certificate cert) |
|
void |
setCloveId(long id) |
|
void |
setData(I2NPMessage msg) |
|
void |
setExpiration(java.util.Date exp) |
|
void |
setInstructions(DeliveryInstructions instr) |
|
byte[] |
toByteArray() |
|
java.lang.String |
toString() |
|
void |
writeBytes(java.io.OutputStream out) |
推奨されていません。
unused, use byte array method to avoid copying
|
calculateHash, fromBase64, fromByteArray, read, toBase64
public GarlicClove(I2PAppContext context)
public DeliveryInstructions getInstructions()
public void setInstructions(DeliveryInstructions instr)
public I2NPMessage getData()
public void setData(I2NPMessage msg)
public long getCloveId()
public void setCloveId(long id)
public java.util.Date getExpiration()
public void setExpiration(java.util.Date exp)
public Certificate getCertificate()
public void setCertificate(Certificate cert)
@Deprecated public void readBytes(java.io.InputStream in) throws DataFormatException, java.io.IOException
DataStructure
in
- stream to read fromjava.lang.UnsupportedOperationException
- alwaysDataFormatException
- if the data is improperly formattedjava.io.IOException
- if there was a problem reading the streampublic int readBytes(byte[] source, int offset) throws DataFormatException
@Deprecated public void writeBytes(java.io.OutputStream out) throws DataFormatException, java.io.IOException
DataStructure
out
- stream to write tojava.lang.UnsupportedOperationException
- alwaysDataFormatException
- if the data was incomplete or not yet ready to be writtenjava.io.IOException
- if there was a problem writing to the streampublic byte[] toByteArray()
toByteArray
インタフェース内 DataStructure
toByteArray
クラス内 DataStructureImpl
public int estimateSize()
public boolean equals(java.lang.Object obj)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object