public abstract class ListMessage extends Message
Message.LazyParseException| Modifier and Type | Field and Description |
|---|---|
protected List<InventoryItem> |
items |
static long |
MAX_INVENTORY_ITEMS |
checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, payload, protocolVersion, recached, UNKNOWN_LENGTH| Constructor and Description |
|---|
ListMessage(NetworkParameters params) |
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(InventoryItem item) |
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
boolean |
equals(Object o) |
List<InventoryItem> |
getItems() |
int |
hashCode() |
void |
parse() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message payload.
|
void |
removeItem(int index) |
adjustLength, bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, unCache, unsafeBitcoinSerializeprotected List<InventoryItem> items
public static final long MAX_INVENTORY_ITEMS
public ListMessage(NetworkParameters params, byte[] bytes) throws ProtocolException
ProtocolExceptionpublic ListMessage(NetworkParameters params, byte[] payload, boolean parseLazy, boolean parseRetain, int length) throws ProtocolException
ProtocolExceptionpublic ListMessage(NetworkParameters params)
public List<InventoryItem> getItems()
public void addItem(InventoryItem item)
public void removeItem(int index)
protected void parseLite()
throws ProtocolException
MessageparseLite in class MessageProtocolExceptionpublic void parse()
throws ProtocolException
ProtocolExceptionpublic void bitcoinSerializeToStream(OutputStream stream) throws IOException
MessageIOExceptionCopyright © 2015. All rights reserved.