Package com.beanit.asn1bean.ber.types
Class BerInteger
java.lang.Object
com.beanit.asn1bean.ber.types.BerInteger
- All Implemented Interfaces:
BerType,Serializable
- Direct Known Subclasses:
BerEnum
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteintdecode(InputStream is) intdecode(InputStream is, boolean withTag) intencode(OutputStream reverseOS) intencode(OutputStream reverseOS, boolean withTag) voidencodeAndSave(int encodingSizeGuess) intintValue()longshorttoString()
-
Field Details
-
tag
-
value
-
-
Constructor Details
-
BerInteger
public BerInteger() -
BerInteger
public BerInteger(byte[] code) -
BerInteger
-
BerInteger
public BerInteger(long val)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceBerType- Throws:
IOException
-
encode
- Throws:
IOException
-
decode
- Specified by:
decodein interfaceBerType- Throws:
IOException
-
decode
- Throws:
IOException
-
encodeAndSave
- Throws:
IOException
-
toString
-
byteValue
public byte byteValue() -
shortValue
public short shortValue() -
intValue
public int intValue() -
longValue
public long longValue()
-