com.google.bitcoin.core
Class ListMessage
java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.ListMessage
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- GetDataMessage, InventoryMessage
public abstract class ListMessage
- extends Message
Abstract superclass of classes with list based payload, i.e. InventoryMessage and GetDataMessage.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListMessage
public ListMessage(NetworkParameters params,
byte[] bytes)
throws ProtocolException
- Throws:
ProtocolException
ListMessage
public ListMessage(NetworkParameters params)
getItems
public List<InventoryItem> getItems()
addItem
public void addItem(InventoryItem item)
parse
public void parse()
throws ProtocolException
- Throws:
ProtocolException
bitcoinSerializeToStream
public void bitcoinSerializeToStream(OutputStream stream)
throws IOException
- Description copied from class:
Message
- Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
- Throws:
IOException
Copyright © 2011. All Rights Reserved.