Class AbstractSnmpValue

    • Constructor Detail

      • AbstractSnmpValue

        public AbstractSnmpValue()
    • Method Detail

      • allBytesDisplayable

        public static boolean allBytesDisplayable​(byte[] bytes)
      • allBytesISO_8859_1

        public static boolean allBytesISO_8859_1​(byte[] bytes)

        If the value is in the unprintable ASCII range (< 32) and is not a:

        • Tab (9)
        • Linefeed (10)
        • Carriage return (13)

        ...or the byte is Delete (127) then this method will return false. Also, if the byte array has a NULL byte (0) that occurs anywhere besides the last character, return false. We will allow the NULL byte as a special case at the end of the string.