public final class TaggedDataAttachment extends Attachment.AbstractAttachment implements Appendix.Prunable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.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, validateIdgetFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldLoadPrunablegetFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytespublic 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.NotValidExceptionpublic TransactionType getTransactionType()
getTransactionType in interface Attachmentprotected int getMySize()
getMySize in class Appendix.AbstractAppendixprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class Appendix.AbstractAppendixpublic int getMyFullSize()
getMyFullSize in interface Appendix.Prunablepublic void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes in interface Appendix.Prunableprotected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON in class Appendix.AbstractAppendixpublic byte[] getHash()
getHash in interface Appendix.Prunablepublic 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.AbstractAppendixpublic boolean hasPrunableData()
hasPrunableData in interface Appendix.Prunablepublic void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData in interface Appendix.Prunable