Package org.bitcoinj.core
Class BitcoinSerializer.BitcoinPacketHeader
- java.lang.Object
-
- org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
-
- Enclosing class:
- BitcoinSerializer
public static class BitcoinSerializer.BitcoinPacketHeader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
checksum
java.lang.String
command
byte[]
header
static int
HEADER_LENGTH
The largest number of bytes that a header can representint
size
-
Constructor Summary
Constructors Constructor Description BitcoinPacketHeader(java.nio.ByteBuffer in)
-
-
-
Field Detail
-
HEADER_LENGTH
public static final int HEADER_LENGTH
The largest number of bytes that a header can represent- See Also:
- Constant Field Values
-
header
public final byte[] header
-
command
public final java.lang.String command
-
size
public final int size
-
checksum
public final byte[] checksum
-
-
Constructor Detail
-
BitcoinPacketHeader
public BitcoinPacketHeader(java.nio.ByteBuffer in) throws ProtocolException, java.nio.BufferUnderflowException
- Throws:
ProtocolException
java.nio.BufferUnderflowException
-
-