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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(InventoryItem item) Deprecated.void
bitcoinSerializeToStream
(OutputStream stream) Serializes this message to the provided stream.boolean
getItems()
int
hashCode()
protected static List<InventoryItem>
readItems
(ByteBuffer payload) void
removeItem
(int index) Deprecated.toString()
Methods inherited from class org.bitcoinj.core.BaseMessage
messageSize, serialize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:BaseMessage
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().- Specified by:
bitcoinSerializeToStream
in classBaseMessage
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-