public class Base64InputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
inputStream
Stream to read
|
private int |
previous
Previous value
|
private int |
step
Current step
|
private static int |
STEP_1
First step
|
private static int |
STEP_2
Second step
|
private static int |
STEP_3
Third step
|
private static int |
STEP_END
Final step
|
Constructor and Description |
---|
Base64InputStream(java.io.InputStream inputStream)
Create a new instance of Base64InputStream
|
Modifier and Type | Method and Description |
---|---|
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 invocation of a method for this input stream
Parent documentation: |
void |
close()
Close the stream
Parent documentation: |
void |
mark(int readlimit)
Mark current position
Parent documentation: |
boolean |
markSupported()
Indicates if mark is supported
Parent documentation: |
int |
read()
Read one byte
Parent documentation: |
void |
reset()
Reset to previous mark
Parent documentation: |
long |
skip(long n)
Skip some bytes
Parent documentation: |
private static final int STEP_1
private static final int STEP_2
private static final int STEP_3
private static final int STEP_END
private java.io.InputStream inputStream
private int previous
private int step
public Base64InputStream(java.io.InputStream inputStream)
inputStream
- Stream to readpublic int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
- On computing issueInputStream.available()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
- On closing issueInputStream.close()
public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- Read limitInputStream.mark(int)
public boolean markSupported()
markSupported
in class java.io.InputStream
true
if mark is supportedInputStream.markSupported()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- On reading issueInputStream.read()
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
- If mark not supportedInputStream.reset()
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
- Number of bytes to skipjava.io.IOException
- On skipping bytesInputStream.skip(long)