Package uk.co.westhawk.snmp.stack
Interface AsnOctetsPrintableFace
- All Known Implementing Classes:
DefaultAsnOctetsPrintable
public interface AsnOctetsPrintableFace
This interface contains the isPrintable() method that is used to decided
whether or not an AsnOctets with type ASN_OCTET_STR is printable or not.
This interface has no effect on the way AsnOctets with type IPADDRESS
or OPAQUE are printed.
When the type is ASN_OCTET_STR, the method tries to guess whether or not the string is printable; without the knowledge of the MIB it cannot distinguish between OctetString and any textual conventions, like DisplayString, InternationalDisplayString or DateAndTime.
- Since:
- 4_14
- Version:
- $Revision: 3.5 $ $Date: 2006/03/23 14:54:10 $
- Author:
- Birgit Arkesteijn
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPrintable
(byte[] value) Returns whether or not the AsnOctets' byte array represent a printable string or not.toInternationalDisplayString
(byte[] value) This method provides the implemantation of the InternationalDisplayString text-convention.
-
Field Details
-
version_id
- See Also:
-
-
Method Details
-
isPrintable
boolean isPrintable(byte[] value) Returns whether or not the AsnOctets' byte array represent a printable string or not. -
toInternationalDisplayString
This method provides the implemantation of the InternationalDisplayString text-convention. See HOST-RESOURCES-MIB."This data type is used to model textual information in some character set. A network management station should use a local algorithm to determine which character set is in use and how it should be displayed. Note that this character set may be encoded with more than one octet per symbol, but will most often be NVT ASCII. When a size clause is specified for an object of this type, the size refers to the length in octets, not the number of symbols."
-