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, unsafeBitcoinSerialize
protected List<InventoryItem> items
public static final long MAX_INVENTORY_ITEMS
public ListMessage(NetworkParameters params, byte[] bytes) throws ProtocolException
ProtocolException
public ListMessage(NetworkParameters params, byte[] payload, boolean parseLazy, boolean parseRetain, int length) throws ProtocolException
ProtocolException
public ListMessage(NetworkParameters params)
public List<InventoryItem> getItems()
public void addItem(InventoryItem item)
public void removeItem(int index)
protected void parseLite() throws ProtocolException
Message
parseLite
in class Message
ProtocolException
public void parse() throws ProtocolException
ProtocolException
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
Copyright © 2014. All rights reserved.