Package org.bitcoinj.core
Class AddressMessage
java.lang.Object
org.bitcoinj.core.Message
org.bitcoinj.core.AddressMessage
- Direct Known Subclasses:
AddressV1Message
,AddressV2Message
-
Field Summary
Fields inherited from class org.bitcoinj.core.Message
cursor, length, MAX_SIZE, offset, params, payload, recached, serializer, UNKNOWN_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addAddress
(PeerAddress address) protected void
bitcoinSerializeToStream
(OutputStream stream) Serializes this message to the provided stream.void
removeAddress
(int index) Methods inherited from class org.bitcoinj.core.Message
adjustLength, bitcoinSerialize, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, parse, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerialize
-
Field Details
-
MAX_ADDRESSES
protected static final long MAX_ADDRESSES- See Also:
-
addresses
-
-
Method Details
-
bitcoinSerializeToStream
Description copied from class:Message
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().- Overrides:
bitcoinSerializeToStream
in classMessage
- Throws:
IOException
-
addAddress
-
removeAddress
public void removeAddress(int index) -
getAddresses
- Returns:
- An unmodifiableList view of the backing List of addresses. Addresses contained within the list may be safely modified.
-