Package org.bouncycastle.asn1
Class BERTaggedObjectParser
- java.lang.Object
 - 
- org.bouncycastle.asn1.BERTaggedObjectParser
 
 
- 
- All Implemented Interfaces:
 ASN1Encodable,ASN1TaggedObjectParser,InMemoryRepresentable
public class BERTaggedObjectParser extends java.lang.Object implements ASN1TaggedObjectParser
Parser for indefinite-length tagged objects. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1PrimitivegetLoadedObject()Return an in-memory, encodable, representation of the tagged object.ASN1EncodablegetObjectParser(int tag, boolean isExplicit)Return an object parser for the contents of this tagged object.intgetTagNo()Return the tag number associated with this object.booleanisConstructed()Return true if this tagged object is marked as constructed.ASN1PrimitivetoASN1Primitive()Return an ASN1TaggedObject representing this parser and its contents. 
 - 
 
- 
- 
Method Detail
- 
isConstructed
public boolean isConstructed()
Return true if this tagged object is marked as constructed.- Returns:
 - true if constructed, false otherwise.
 
 
- 
getTagNo
public int getTagNo()
Return the tag number associated with this object.- Specified by:
 getTagNoin interfaceASN1TaggedObjectParser- Returns:
 - the tag number.
 
 
- 
getObjectParser
public ASN1Encodable getObjectParser(int tag, boolean isExplicit) throws java.io.IOException
Return an object parser for the contents of this tagged object.- Specified by:
 getObjectParserin interfaceASN1TaggedObjectParser- Parameters:
 tag- the actual tag number of the object (needed if implicit).isExplicit- true if the contained object was explicitly tagged, false if implicit.- Returns:
 - an ASN.1 encodable object parser.
 - Throws:
 java.io.IOException- if there is an issue building the object parser from the stream.
 
- 
getLoadedObject
public ASN1Primitive getLoadedObject() throws java.io.IOException
Return an in-memory, encodable, representation of the tagged object.- Specified by:
 getLoadedObjectin interfaceInMemoryRepresentable- Returns:
 - an ASN1TaggedObject.
 - Throws:
 java.io.IOException- if there is an issue loading the data.
 
- 
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Return an ASN1TaggedObject representing this parser and its contents.- Specified by:
 toASN1Primitivein interfaceASN1Encodable- Returns:
 - an ASN1TaggedObject
 
 
 - 
 
 -