public class RepositionableInputStream extends InputStream implements it.unimi.dsi.fastutil.io.RepositionableStream
| Constructor and Description |
|---|
RepositionableInputStream(String resource) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static it.unimi.dsi.fastutil.io.RepositionableStream |
get(String resource) |
static InputStream |
getStream(String resource) |
static InputStream |
getStream(String resource,
long startOffset) |
static boolean |
isLocalFile(String resource) |
void |
mark(int i) |
boolean |
markSupported() |
long |
position() |
void |
position(long p) |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int i,
int i1) |
void |
reset() |
static boolean |
resourceExist(String resource)
Determine if a File.URL exists.
|
long |
skip(long l) |
public RepositionableInputStream(String resource) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int i,
int i1)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long l)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int i)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void position(long p)
throws IOException
position in interface it.unimi.dsi.fastutil.io.RepositionableStreamIOExceptionpublic long position()
throws IOException
position in interface it.unimi.dsi.fastutil.io.RepositionableStreamIOExceptionpublic static InputStream getStream(String resource) throws IOException
IOExceptionpublic static InputStream getStream(String resource, long startOffset) throws IOException
IOExceptionpublic static boolean isLocalFile(String resource)
public static boolean resourceExist(String resource)
resource - public static it.unimi.dsi.fastutil.io.RepositionableStream get(String resource) throws IOException
IOExceptionCopyright © 2017 Campagne Laboratory. All rights reserved.