public abstract class ListMessage extends Message
Message.LazyParseException
Modifier and Type | Field and Description |
---|---|
protected List<InventoryItem> |
items |
static long |
MAX_INVENTORY_ITEMS |
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
ListMessage(NetworkParameters params) |
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] msg,
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() |
void |
parse() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message.
|
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[] msg, 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.