Package org.bitcoinj.core
Class ListMessage
java.lang.Object
org.bitcoinj.core.BaseMessage
org.bitcoinj.core.ListMessage
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
GetDataMessage,InventoryMessage
Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.
Instances of this class -- that use deprecated methods -- are not safe for use by multiple threads.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(InventoryItem item) Deprecated.voidbitcoinSerializeToStream(OutputStream stream) Serializes this message to the provided stream.booleangetItems()inthashCode()protected static List<InventoryItem>readItems(ByteBuffer payload) voidremoveItem(int index) Deprecated.toString()Methods inherited from class org.bitcoinj.core.BaseMessage
messageSize, serializeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bitcoinj.core.Message
bitcoinSerialize, getMessageSize, unsafeBitcoinSerialize
-
Field Details
-
items
-
MAX_INVENTORY_ITEMS
public static final int MAX_INVENTORY_ITEMS- See Also:
-
-
Constructor Details
-
ListMessage
Deprecated. -
ListMessage
-
-
Method Details
-
readItems
protected static List<InventoryItem> readItems(ByteBuffer payload) throws BufferUnderflowException, ProtocolException -
getItems
-
addItem
Deprecated. -
removeItem
Deprecated. -
bitcoinSerializeToStream
Description copied from class:BaseMessageSerializes this message to the provided stream. If you just want the raw bytes useBaseMessage.serialize().- Specified by:
bitcoinSerializeToStreamin classBaseMessage- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-