Base64InputStream

public class Base64InputStream extends FilterInputStream

An InputStream that does Base64 decoding on the data read through it.

Inherited Field Summary

Public Constructor Summary

Base64InputStream(InputStream in, int flags)
An InputStream that performs Base64 decoding on the data read from the wrapped stream.

Public Method Summary

int
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
void
close()
Closes this input stream and releases any system resources associated with the stream.
void
mark(int readlimit)
Marks the current position in this input stream.
boolean
markSupported()
Tests if this input stream supports the mark and reset methods.
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.
void
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
long
skip(long n)
Skips over and discards n bytes of data from the input stream.

Inherited Method Summary

Public Constructors

public Base64InputStream (InputStream in, int flags)

An InputStream that performs Base64 decoding on the data read from the wrapped stream.

Parameters
in the InputStream to read the source data from
flags bit flags for controlling the decoder; see the constants in Base64

Public Methods

public int available ()

Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.

This method returns the result of in.available().

Returns
  • an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking.

public void close ()

Closes this input stream and releases any system resources associated with the stream. This method simply performs in.close().

Throws
IOException

public