public final class TaggedDataAttachment extends Attachment.AbstractAttachment implements Appendix.Prunable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
Modifier and Type | Field and Description |
---|---|
static Appendix.Parser |
appendixParser |
Constructor and Description |
---|
TaggedDataAttachment(java.lang.String name,
java.lang.String description,
java.lang.String tags,
java.lang.String type,
java.lang.String channel,
boolean isText,
java.lang.String filename,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChannel() |
byte[] |
getData() |
java.lang.String |
getDescription() |
java.lang.String |
getFilename() |
byte[] |
getHash() |
int |
getMyFullSize() |
protected int |
getMySize() |
java.lang.String |
getName() |
java.lang.String |
getTags() |
TransactionType |
getTransactionType() |
java.lang.String |
getType() |
boolean |
hasPrunableData() |
boolean |
isText() |
void |
loadPrunable(Transaction transaction,
boolean includeExpiredPrunable) |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject attachment) |
void |
putMyPrunableBytes(java.nio.ByteBuffer buffer) |
void |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateId
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldLoadPrunable
getFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytes
public static final Appendix.Parser appendixParser
public TaggedDataAttachment(java.lang.String name, java.lang.String description, java.lang.String tags, java.lang.String type, java.lang.String channel, boolean isText, java.lang.String filename, byte[] data) throws NxtException.NotValidException
NxtException.NotValidException
public TransactionType getTransactionType()
getTransactionType
in interface Attachment
protected int getMySize()
getMySize
in class Appendix.AbstractAppendix
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class Appendix.AbstractAppendix
public int getMyFullSize()
getMyFullSize
in interface Appendix.Prunable
public void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes
in interface Appendix.Prunable
protected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON
in class Appendix.AbstractAppendix
public byte[] getHash()
getHash
in interface Appendix.Prunable
public final java.lang.String getName()
public final java.lang.String getDescription()
public final java.lang.String getTags()
public final java.lang.String getType()
public final java.lang.String getChannel()
public final boolean isText()
public final java.lang.String getFilename()
public final byte[] getData()
public void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable
in class Appendix.AbstractAppendix
public boolean hasPrunableData()
hasPrunableData
in interface Appendix.Prunable
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData
in interface Appendix.Prunable