public class SdkBufferedInputStream extends java.io.BufferedInputStream implements MetricAware
Constructor and Description |
---|
SdkBufferedInputStream(java.io.InputStream in) |
SdkBufferedInputStream(java.io.InputStream in,
int size) |
Modifier and Type | Method and Description |
---|---|
protected void |
abort()
Can be used to provide abortion logic prior to throwing the
AbortedException.
|
protected void |
abortIfNeeded()
Aborts with subclass specific abortion logic executed if needed.
|
int |
available() |
void |
close() |
boolean |
isMetricActivated()
Returns true if this object or one of it's inner wrapped objects has
metrics gathering activity turned on; false otherwise.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public SdkBufferedInputStream(java.io.InputStream in)
public SdkBufferedInputStream(java.io.InputStream in, int size)
public boolean isMetricActivated()
MetricAware
isMetricActivated
in interface MetricAware
protected final void abortIfNeeded()
AbortedException
- if found necessary.protected void abort()
public int read() throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.BufferedInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.BufferedInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.BufferedInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.BufferedInputStream
public void reset() throws java.io.IOException
reset
in class java.io.BufferedInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.BufferedInputStream