Top Fields Constructors Methods
org.bouncycastle.est

pack-priv Class CTEBase64InputStream

extends InputStream
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, org.bouncycastle.util.encoders.Base64Encoder

Field Summary

Modifier and TypeField and Description
private final Base64Encoder
protected final byte[]
protected final OutputStream
protected boolean
protected final Long
protected final byte[]
protected long
protected int
protected final InputStream
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.InputStream.close.

Implements java.io.Closeable.close.

Closes this input stream and releases any system resources associated with the stream.
protected int
public int
read()

Implements abstract java.io.InputStream.read.

Reads the next byte of data from the input stream.
Inherited from java.io.InputStream:
availablemarkmarkSupportednullInputStreamreadreadreadAllBytesreadNBytesreadNBytesresetskipskipNBytestransferTo

Field Detail

base64Encoderback to summary
private final Base64Encoder base64Encoder
databack to summary
protected final byte[] data
dataOutputStreamback to summary
protected final OutputStream dataOutputStream
endback to summary
protected boolean end
maxback to summary
protected final Long max
rawBufback to summary
protected final byte[] rawBuf
readback to summary
protected long read
rpback to summary
protected int rp
srcback to summary
protected final InputStream src
wpback to summary
protected int wp

Constructor Detail

CTEBase64InputStreamback to summary
public CTEBase64InputStream(InputStream src, Long limit)

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.InputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.InputStream.close.

Closes this input stream and releases any system resources associated with the stream.

Exceptions
IOException:
if an I/O error occurs.
pullFromSrcback to summary
protected int pullFromSrc() throws IOException
readback to summary
public int read() throws IOException

Implements abstract java.io.InputStream.read.

Doc from java.io.InputStream.read.

Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.

Returns:int

the next byte of data, or -1 if the end of the stream is reached.

Exceptions
IOException:
if an I/O error occurs.