codec.asn1
Class ASN1Boolean

java.lang.Object
  |
  +--codec.asn1.ASN1AbstractType
        |
        +--codec.asn1.ASN1Boolean
All Implemented Interfaces:
ASN1Type, Cloneable, Externalizable, Serializable

public class ASN1Boolean
extends ASN1AbstractType

Represents an ASN.1 BOOEAN type. The corresponding Java type is boolean. This type does not support constraint checking.

Version:
"$Id: ASN1Boolean.java,v 1.2 2000/12/06 17:47:23 vroth Exp $"
Author:
Volker Roth
See Also:
Constraint, Serialized Form

Constructor Summary
ASN1Boolean()
           
ASN1Boolean(boolean t)
           
 
Method Summary
 void decode(Decoder dec)
           
 void encode(Encoder enc)
           
 int getTag()
          Returns the corresponding ASN.1 tag.
 Object getValue()
          This abstract method should return the value wrapped by the ASN1Type.
 boolean isTrue()
           
 void setTrue(boolean b)
           
 String toString()
           
 
Methods inherited from class codec.asn1.ASN1AbstractType
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASN1Boolean

public ASN1Boolean()

ASN1Boolean

public ASN1Boolean(boolean t)
Method Detail

getValue

public Object getValue()
Description copied from class: ASN1AbstractType
This abstract method should return the value wrapped by the ASN1Type.
Overrides:
getValue in class ASN1AbstractType
Following copied from class: codec.asn1.ASN1AbstractType
Returns:
the internal value

isTrue

public boolean isTrue()

setTrue

public void setTrue(boolean b)

getTag

public int getTag()
Description copied from class: ASN1AbstractType
Returns the corresponding ASN.1 tag.
Overrides:
getTag in class ASN1AbstractType
Following copied from class: codec.asn1.ASN1AbstractType
Returns:
the corresponding ASN.1 tag

encode

public void encode(Encoder enc)
            throws ASN1Exception,
                   IOException
Overrides:
encode in class ASN1AbstractType

decode

public void decode(Decoder dec)
            throws ASN1Exception,
                   IOException
Overrides:
decode in class ASN1AbstractType

toString

public String toString()
Overrides:
toString in class Object


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.