Class 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 represent
      int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      BitcoinPacketHeader​(java.nio.ByteBuffer in)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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