Package android.util
Class Base64InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
android.util.Base64InputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An InputStream that does Base64 decoding on the data read through it.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionBase64InputStream(InputStream in, int flags) An InputStream that performs Base64 decoding on the data read from the wrapped stream.Base64InputStream(InputStream in, int flags, boolean encode) Performs Base64 encoding or decoding on the data read from the wrapped InputStream. -
Method Summary
Methods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
Base64InputStream
An InputStream that performs Base64 decoding on the data read from the wrapped stream.- Parameters:
in- the InputStream to read the source data fromflags- bit flags for controlling the decoder; see the constants inBase64
-
Base64InputStream
Performs Base64 encoding or decoding on the data read from the wrapped InputStream.- Parameters:
in- the InputStream to read the source data fromflags- bit flags for controlling the decoder; see the constants inBase64encode- true to encode, false to decode
-
-
Method Details
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
public void reset()- Overrides:
resetin classFilterInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
available
public int available()- Overrides:
availablein classFilterInputStream
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-