Package nxt.messaging
Class PrunablePlainMessageAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.messaging.PrunablePlainMessageAppendix
- All Implemented Interfaces:
Appendix,Appendix.Prunable
public class PrunablePlainMessageAppendix
extends Appendix.AbstractAppendix
implements Appendix.Prunable
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Appendix.Parserstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPrunablePlainMessageAppendix(byte[] message) PrunablePlainMessageAppendix(byte[] message, boolean isText) PrunablePlainMessageAppendix(String string) PrunablePlainMessageAppendix(String string, boolean isText) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Transaction transaction, Account senderAccount, Account recipientAccount) intgetBaselineFee(Transaction transaction) byte[]getHash()byte[]intprotected intfinal booleanbooleanbooleanbooleanisText()final voidloadPrunable(Transaction transaction, boolean includeExpiredPrunable) protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) voidputMyPrunableBytes(ByteBuffer buffer) voidrestorePrunableData(Transaction transaction, int blockTimestamp, int height) voidvalidate(Transaction transaction) Methods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix.Prunable
shouldLoadPrunable
-
Field Details
-
appendixType
public static final int appendixType- See Also:
-
appendixName
- See Also:
-
appendixParser
-
-
Constructor Details
-
PrunablePlainMessageAppendix
public PrunablePlainMessageAppendix(byte[] message) -
PrunablePlainMessageAppendix
-
PrunablePlainMessageAppendix
-
PrunablePlainMessageAppendix
public PrunablePlainMessageAppendix(byte[] message, boolean isText)
-
-
Method Details
-
getAppendixType
public int getAppendixType()- Specified by:
getAppendixTypein interfaceAppendix
-
getAppendixName
- Specified by:
getAppendixNamein classAppendix.AbstractAppendix
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
getMyFullSize
public int getMyFullSize()- Specified by:
getMyFullSizein interfaceAppendix.Prunable
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
putMyPrunableBytes
- Specified by:
putMyPrunableBytesin interfaceAppendix.Prunable
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Specified by:
putMyJSONin classAppendix.AbstractAppendix
-
validate
- Specified by:
validatein classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
apply
- Specified by:
applyin classAppendix.AbstractAppendix
-
getMessage
public byte[] getMessage() -
isText
public boolean isText() -
getHash
public byte[] getHash()- Specified by:
getHashin interfaceAppendix.Prunable
-
loadPrunable
- Overrides:
loadPrunablein classAppendix.AbstractAppendix
-
isPhasable
public boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-
hasPrunableData
public final boolean hasPrunableData()- Specified by:
hasPrunableDatain interfaceAppendix.Prunable
-
restorePrunableData
- Specified by:
restorePrunableDatain interfaceAppendix.Prunable
-