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) |
read
public DataHandleInputStream(DataHandle<L> handle)
DataHandle
.public DataHandle<L> getDataHandle()
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] array, int offset, int n) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2015–2022 SciJava. All rights reserved.