public static class SpillSet.CountingInputStream extends InputStream
| Constructor and Description |
|---|
CountingInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getCount() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, resetpublic CountingInputStream(InputStream in)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic long getCount()
Copyright © 2022 The Apache Software Foundation. All rights reserved.