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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BaseMessagemessageSize, serializeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bitcoinj.core.MessagebitcoinSerialize, getMessageSize, unsafeBitcoinSerialize
- 
Field Details- 
items
- 
MAX_INVENTORY_ITEMSpublic static final int MAX_INVENTORY_ITEMS- See Also:
 
 
- 
- 
Constructor Details- 
ListMessageDeprecated.
- 
ListMessage
 
- 
- 
Method Details- 
readItemsprotected static List<InventoryItem> readItems(ByteBuffer payload) throws BufferUnderflowException, ProtocolException 
- 
getItems
- 
addItemDeprecated.
- 
removeItemDeprecated.
- 
bitcoinSerializeToStreamDescription copied from class:BaseMessageSerializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().- Specified by:
- bitcoinSerializeToStreamin class- BaseMessage
- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-