private class TempFileDataSource.TempInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
private File |
file |
in
Modifier | Constructor and Description |
---|---|
private |
TempFileDataSource.TempInputStream(InputStream in,
File file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private void |
deleteTempFile()
Delete the temp file if it exists and we know that
only one stream is reading from it.
|
protected void |
finalize() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, reset, skip
private File file
private TempFileDataSource.TempInputStream(InputStream in, File file)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
protected void finalize() throws Throwable
private void deleteTempFile()