public class ChunkedByteBufferInputStream
extends java.io.InputStream
param: dispose if true, ChunkedByteBuffer.dispose() will be called at the end of the stream
in order to close any memory-mapped files which back the buffer.
| Constructor and Description |
|---|
ChunkedByteBufferInputStream(org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer,
boolean dispose) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.spark.util.io.ChunkedByteBuffer |
chunkedByteBuffer() |
void |
close() |
int |
read() |
int |
read(byte[] dest,
int offset,
int length) |
long |
skip(long bytes) |
public ChunkedByteBufferInputStream(org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer,
boolean dispose)
public org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer()
public int read()
read in class java.io.InputStreampublic int read(byte[] dest,
int offset,
int length)
read in class java.io.InputStreampublic long skip(long bytes)
skip in class java.io.InputStreampublic void close()
close in interface java.io.Closeableclose in interface AutoCloseableclose in class java.io.InputStream