public class SharedFileInputStream extends InputStream implements SharedInputStream
| Constructor and Description |
|---|
SharedFileInputStream(File file) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition() |
SharedFileInputStream |
getRoot() |
void |
mark(int limit) |
boolean |
markSupported() |
SharedFileInputStream |
newStream(long start,
long end) |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int len) |
void |
reset() |
long |
skip(long len) |
available, closepublic SharedFileInputStream(File file) throws IOException
IOExceptionpublic long getPosition()
getPosition in interface SharedInputStreampublic SharedFileInputStream newStream(long start, long end)
newStream in interface SharedInputStreampublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic long skip(long len)
throws IOException
skip in class InputStreamIOExceptionpublic void mark(int limit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic SharedFileInputStream getRoot()
Copyright © 2012 Nuxeo SA. All Rights Reserved.