Commit 250a2c7d authored by wwalkowski's avatar wwalkowski

New stub files for 1.2.2 Bundle release

parent ee00cb48
package org.ocap.diagnostics; package org.ocap.diagnostics;
/** /**
* The interface represents a MIB Object. It contains the oid, as well as the * This interface represents a MIB Object.
* encoding of the object with value formats corresponding to the ASN.1
* definition of the object.
*/ */
public class MIBObject public class MIBObject
{ {
...@@ -12,9 +10,10 @@ public class MIBObject ...@@ -12,9 +10,10 @@ public class MIBObject
* Constructs a MIB object. * Constructs a MIB object.
* *
* @param oid Object Identifier of the MIB object. * @param oid Object Identifier of the MIB object.
* @param data Array of bytes representing the MIB encoding. * @param data Array of bytes representing the MIB object data,
* in ASN.1 format with BER encoding.
*/ */
public MIBObject(String oid, byte [] data) public MIBObject(String oid, byte[] data)
{ {
} }
...@@ -30,14 +29,27 @@ public class MIBObject ...@@ -30,14 +29,27 @@ public class MIBObject
} }
/** /**
* Gets the current MIB object encoding in byte array form. The * Returns the current MIB object data, in ASN.1 format with BER encoding.
* array is formatted according to the ASN.1 format of the MIB.
* *
* @return A byte array representing the MIB object encoding. * @return A byte array containing the ASN.1 formatted MIB object data.
*/ */
public byte [] getData() public byte[] getData()
{ {
return null; return null;
} }
}
/**
* Returns the unencoded value of the current MIB object data. The
* returned array is the value field of the BER type-length-value encoding
* provided by {@link #getData()}.
*
* @return A byte array representing the unencoded value of the MIB object data,
* or {@code null} if the data cannot be unencoded.
*
* @see #getData
*/
public byte[] getValue()
{
return null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment