Class PEMParserBC
java.lang.Object
com.itextpdf.bouncycastle.openssl.PEMParserBC
- All Implemented Interfaces:
-
IPEMParser
,Closeable
,AutoCloseable
Wrapper class for
PEMParser
.
-
Constructor Summary
ConstructorDescriptionPEMParserBC
(org.bouncycastle.openssl.PEMParser parser) Creates new wrapper instance forPEMParser
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Delegatesclose
method call to the wrapped parser.boolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.openssl.PEMParser
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.Calls actualreadObject
method for the wrapped PEMParser object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
PEMParserBC
public PEMParserBC(org.bouncycastle.openssl.PEMParser parser) Creates new wrapper instance forPEMParser
.- Parameters:
-
parser
-PEMParser
to be wrapped
-
-
Method Details
-
getParser
public org.bouncycastle.openssl.PEMParser getParser()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
PEMParser
.
-
readObject
Calls actualreadObject
method for the wrapped PEMParser object.- Specified by:
-
readObject
in interfaceIPEMParser
- Returns:
-
Object
which represents read object. - Throws:
-
IOException
- in case of issues with file.
-
close
Delegatesclose
method call to the wrapped parser.- Specified by:
-
close
in interfaceAutoCloseable
- Specified by:
-
close
in interfaceCloseable
- Throws:
-
IOException
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-