public class ASN1InputStream extends Base64InputStream
The following formats have been tested:
0x30 0x82 0x03 0xE9 ...
MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... PZm5TIGAxUXR96AalaJwvG8wdk+l3t1BmMI6 MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... Sk03xc18zfv5DhZ8Vuz3Nk1qgi1mPq0krImanGtFtBszSSnmpNW08ujUTvGHhDk=
-----BEGIN CERTIFICATE----- MIIB9zCCAWACBEZWm84wDQYJKoZIhvcNAQEEBQAwNTELMAkGA1UEBhMCQVQxDTAL ... PZm5TIGAxUXR96AalaJwvG8wdk+l3t1BmMI6 -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... Sk03xc18zfv5DhZ8Vuz3Nk1qgi1mPq0krImanGtFtBszSSnmpNW08ujUTvGHhDk= -----END CERTIFICATE-----
decoding, ERROR, IGNORE, NOTIFY| Constructor and Description |
|---|
ASN1InputStream(java.io.InputStream is)
Creates a new ASN1InputStream to read data from the specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read from this input stream without
blocking.
|
protected void |
notify(byte[] buffer)
Called by super class if a '-' shall be decoded.
|
int |
read()
Reads the next byte of data from this input stream.
|
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of
bytes.
|
markSupported, setDefaultIgnoreInvalidCharacters, setIgnoreInvalidCharacterspublic ASN1InputStream(java.io.InputStream is)
throws java.io.IOException
is - the underlying input streamjava.io.IOException - if an I/O error occurs during reading from the streamprotected void notify(byte[] buffer)
throws java.io.IOException
notify in class Base64InputStreambuffer - the characters already read from the input stream; and the
first one was marked with NOTIFYjava.io.IOException - allows the subclass to throw an Exception if an error occurspublic int read()
throws java.io.IOException
read in class Base64InputStreamjava.io.IOException - if an I/O error occurspublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class Base64InputStreamb - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes readjava.io.IOException - if an I/O error occurspublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException - if an I/O error occurs