public class SdkBufferedInputStream extends BufferedInputStream implements MetricAware
in
Constructor and Description |
---|
SdkBufferedInputStream(InputStream in) |
SdkBufferedInputStream(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) |
read
public SdkBufferedInputStream(InputStream in)
public SdkBufferedInputStream(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 IOException
read
in class BufferedInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class BufferedInputStream
IOException
public long skip(long n) throws IOException
skip
in class BufferedInputStream
IOException
public int available() throws IOException
available
in class BufferedInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class BufferedInputStream
IOException
public void mark(int readlimit)
mark
in class BufferedInputStream
public void reset() throws IOException
reset
in class BufferedInputStream
IOException
public boolean markSupported()
markSupported
in class BufferedInputStream
Copyright © 2022. All rights reserved.