📄 snmpoctetstring.html
字号:
<A NAME="data"><!-- --></A><H3>
data</H3>
<PRE>
protected byte[] <B>data</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="tag"><!-- --></A><H3>
tag</H3>
<PRE>
protected byte <B>tag</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SNMPOctetString()"><!-- --></A><H3>
SNMPOctetString</H3>
<PRE>
public <B>SNMPOctetString</B>()</PRE>
<DL>
<DD>Create a zero-length octet string.
<P>
</DL>
<HR>
<A NAME="SNMPOctetString(java.lang.String)"><!-- --></A><H3>
SNMPOctetString</H3>
<PRE>
public <B>SNMPOctetString</B>(java.lang.String stringData)</PRE>
<DL>
<DD>Create an octet string from the bytes of the supplied String.
<P>
</DL>
<HR>
<A NAME="SNMPOctetString(byte[])"><!-- --></A><H3>
SNMPOctetString</H3>
<PRE>
public <B>SNMPOctetString</B>(byte[] enc)</PRE>
<DL>
<DD>Create an octet string from the supplied byte array. The array may be either user-supplied, or part of a retrieved BER encoding. Note that the BER encoding of the data of an octet string is just the raw bytes.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getValue()"><!-- --></A><H3>
getValue</H3>
<PRE>
public java.lang.Object <B>getValue</B>()</PRE>
<DL>
<DD>Return the array of raw bytes.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#getValue()">getValue</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public void <B>setValue</B>(java.lang.Object data)
throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Used to set the value from a byte array.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#setValue(java.lang.Object)">setValue</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE> - Indicates an incorrect object type supplied.</DL>
</DD>
</DL>
<HR>
<A NAME="getBEREncoding()"><!-- --></A><H3>
getBEREncoding</H3>
<PRE>
protected byte[] <B>getBEREncoding</B>()</PRE>
<DL>
<DD>Returns the BER encoding for the octet string. Note the the "value" part of the BER type,length,value triple is just the sequence of raw bytes.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#getBEREncoding()">getBEREncoding</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="extractFromBEREncoding(byte[])"><!-- --></A><H3>
extractFromBEREncoding</H3>
<PRE>
protected void <B>extractFromBEREncoding</B>(byte[] enc)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object other)</PRE>
<DL>
<DD>Checks the embedded arrays for equality.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Generates a hash value so SNMP Octet String subclasses can be used in Hashtables.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a String constructed from the raw bytes. If the bytes contain non-printable ASCII characters, tant pis! (Though it's fun when the bell rings!)
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../snmp/SNMPObject.html#toString()">toString</A></CODE> in class <CODE><A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toHexString()"><!-- --></A><H3>
toHexString</H3>
<PRE>
public java.lang.String <B>toHexString</B>()</PRE>
<DL>
<DD>Returns a space-separated hex string corresponding to the raw bytes.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SNMPOctetString.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../snmp/SNMPObjectIdentifier.html" title="class in snmp"><B>PREV CLASS</B></A>
<A HREF="../snmp/SNMPPDU.html" title="class in snmp"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?snmp/SNMPOctetString.html" target="_top"><B>FRAMES</B></A>
<A HREF="SNMPOctetString.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -