public class TrackedInputStream extends TrackableInputStream
| Constructor and Description |
|---|
TrackedInputStream(InputStream input)
Creates a new tracked input stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getBytesRead()
Gets the number of bytes read
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public TrackedInputStream(InputStream input)
input - Input stream to trackpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic long getBytesRead()
TrackableInputStreamgetBytesRead in class TrackableInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionLicenced under the Apache License, Version 2.0