public class DataHandleInputStream<L extends Location> extends InputStream
InputStream backed by a DataHandle.| Constructor and Description |
|---|
DataHandleInputStream(DataHandle<L> handle)
Creates an input stream around the given
DataHandle. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
DataHandle<L> |
getDataHandle() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] array,
int offset,
int n) |
void |
reset() |
long |
skip(long n) |
readpublic DataHandleInputStream(DataHandle<L> handle)
DataHandle.public DataHandle<L> getDataHandle()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] array,
int offset,
int n)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2009–2016 SciJava. All rights reserved.