Package org.bouncycastle.asn1
Class BEROctetStringParser
- java.lang.Object
 - 
- org.bouncycastle.asn1.BEROctetStringParser
 
 
- 
- All Implemented Interfaces:
 ASN1Encodable,ASN1OctetStringParser,InMemoryRepresentable
public class BEROctetStringParser extends java.lang.Object implements ASN1OctetStringParser
A parser for indefinite-length OCTET STRINGs. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1PrimitivegetLoadedObject()Return an in-memory, encodable, representation of the OCTET STRING.java.io.InputStreamgetOctetStream()Return an InputStream representing the contents of the OCTET STRING.ASN1PrimitivetoASN1Primitive()Return an BEROctetString representing this parser and its contents. 
 - 
 
- 
- 
Method Detail
- 
getOctetStream
public java.io.InputStream getOctetStream()
Return an InputStream representing the contents of the OCTET STRING.- Specified by:
 getOctetStreamin interfaceASN1OctetStringParser- Returns:
 - an InputStream with its source as the OCTET STRING content.
 
 
- 
getLoadedObject
public ASN1Primitive getLoadedObject() throws java.io.IOException
Return an in-memory, encodable, representation of the OCTET STRING.- Specified by:
 getLoadedObjectin interfaceInMemoryRepresentable- Returns:
 - a BEROctetString.
 - Throws:
 java.io.IOException- if there is an issue loading the data.
 
- 
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Return an BEROctetString representing this parser and its contents.- Specified by:
 toASN1Primitivein interfaceASN1Encodable- Returns:
 - an BEROctetString
 
 
 - 
 
 -