Class HeartbeatExtension


  • public class HeartbeatExtension
    extends java.lang.Object
    • Field Detail

      • mode

        protected short mode
    • Constructor Detail

      • HeartbeatExtension

        public HeartbeatExtension​(short mode)
    • Method Detail

      • getMode

        public short getMode()
      • encode

        public void encode​(java.io.OutputStream output)
                    throws java.io.IOException
        Encode this HeartbeatExtension to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static HeartbeatExtension parse​(java.io.InputStream input)
                                        throws java.io.IOException
        Parse a HeartbeatExtension from an InputStream.
        Parameters:
        input - the InputStream to parse from.
        Returns:
        a HeartbeatExtension object.
        Throws:
        java.io.IOException