Package nxt.taggeddata
Class TaggedDataAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
nxt.taggeddata.TaggedDataAttachment
- All Implemented Interfaces:
Appendix,Appendix.Prunable,Attachment
public final class TaggedDataAttachment
extends Attachment.AbstractAttachment
implements Appendix.Prunable
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableNested classes/interfaces inherited from interface nxt.blockchain.Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringfinal byte[]getData()final Stringfinal Stringbyte[]getHash()intprotected intfinal StringgetName()final StringgetTags()final StringgetType()booleanfinal booleanisText()voidloadPrunable(Transaction transaction, boolean includeExpiredPrunable) protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject attachment) voidputMyPrunableBytes(ByteBuffer buffer) voidrestorePrunableData(Transaction transaction, int blockTimestamp, int height) Methods inherited from class nxt.blockchain.Attachment.AbstractAttachment
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, putBytesMethods inherited from interface nxt.blockchain.Appendix.Prunable
shouldLoadPrunable
-
Field Details
-
appendixParser
-
-
Constructor Details
-
TaggedDataAttachment
public TaggedDataAttachment(String name, String description, String tags, String type, String channel, boolean isText, String filename, byte[] data) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
-
Method Details
-
getTransactionType
- Specified by:
getTransactionTypein interfaceAttachment
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
getMyFullSize
public int getMyFullSize()- Specified by:
getMyFullSizein interfaceAppendix.Prunable
-
putMyPrunableBytes
- Specified by:
putMyPrunableBytesin interfaceAppendix.Prunable
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject attachment) - Specified by:
putMyJSONin classAppendix.AbstractAppendix
-
getHash
public byte[] getHash()- Specified by:
getHashin interfaceAppendix.Prunable
-
getName
-
getDescription
-
getTags
-
getType
-
getChannel
-
isText
public final boolean isText() -
getFilename
-
getData
public final byte[] getData() -
loadPrunable
- Overrides:
loadPrunablein classAppendix.AbstractAppendix
-
hasPrunableData
public boolean hasPrunableData()- Specified by:
hasPrunableDatain interfaceAppendix.Prunable
-
restorePrunableData
- Specified by:
restorePrunableDatain interfaceAppendix.Prunable
-