public class OtherMsg
extends java.lang.Object
| Constructor and Description |
|---|
OtherMsg()
Creates an empty
OtherMsg instance. |
OtherMsg(java.io.InputStream is)
Create a new
OtherMsg by reading from the specified input stream. |
OtherMsg(long bodyPartID)
Creates a
OtherMsg instance with the specified value. |
OtherMsg(long bodyPartID,
ASN1ObjectID otherMsgType)
Creates an
OtherMsg instance with the
specified values. |
OtherMsg(long bodyPartID,
ASN1ObjectID otherMsgType,
ASN1Object otherMsgValue)
Creates an
OtherMsg instance with the
specified values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this
OtherMsg to the specified object. |
long |
getBodyPartID()
Returns the BodyPart Identifier value.
|
ASN1ObjectID |
getOtherMsgType()
Returns the type of OtherMsg.
|
ASN1Object |
getOtherMsgValue()
Returns the OtherMsg value.
|
void |
input(java.io.InputStream is)
Create a new
OtherMsg by reading from the specified input stream. |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
OtherMsg to the specified output stream. |
void |
setBodyPartID(long bodyPartID)
Sets the BodyPart Identifier value.
|
void |
setOtherMsgType(ASN1ObjectID otherMsgType)
Sets the type of OtherMsg.
|
void |
setOtherMsgValue(ASN1Object otherMsgValue)
Sets the OtherMsg value.
|
public OtherMsg()
OtherMsg instance.public OtherMsg(long bodyPartID)
throws InvalidInputException
OtherMsg instance with the specified value.bodyPartID - The unique integer used to reference this control attribute.InvalidInputExceptionpublic OtherMsg(long bodyPartID,
ASN1ObjectID otherMsgType)
throws InvalidInputException
OtherMsg instance with the
specified values.bodyPartID - The unique integer used to reference this control attribute.otherMsgType - The OID defining the associated value.InvalidInputExceptionpublic OtherMsg(long bodyPartID,
ASN1ObjectID otherMsgType,
ASN1Object otherMsgValue)
throws InvalidInputException
OtherMsg instance with the
specified values.bodyPartID - The unique integer used to reference this control attribute.otherMsgType - The OID defining the associated value.otherMsgValue - The associated value.InvalidInputExceptionpublic OtherMsg(java.io.InputStream is)
throws java.io.IOException
OtherMsg by reading from the specified input stream.is - The input stream containing the encoded OtherMsg.java.io.IOExceptionpublic void setBodyPartID(long bodyPartID)
throws InvalidInputException
bodyPartID - The unique integer used to reference this control attribute.InvalidInputExceptionpublic long getBodyPartID()
public void setOtherMsgType(ASN1ObjectID otherMsgType)
otherMsgType - The OID defining the associated value.public ASN1ObjectID getOtherMsgType()
public void setOtherMsgValue(ASN1Object otherMsgValue)
otherMsgValue - The associated OtherMsg value.public ASN1Object getOtherMsgValue()
public void input(java.io.InputStream is)
throws java.io.IOException
OtherMsg by reading from the specified input stream.is - The input stream containing the encoded OtherMsg.java.io.IOException - The input encoding is incorrect or an I/O error occurs.public void output(java.io.OutputStream os)
throws java.io.IOException
OtherMsg to the specified output stream.os - The output stream.java.io.IOException - An I/O error occurs.public int length()
public boolean equals(java.lang.Object o)
OtherMsg to the specified object. Returns
true if and only if the argument is not null and
is an OtherMsg object which has the same DER encoding
as this object.equals in class java.lang.Object