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, close
public SharedFileInputStream(File file) throws IOException
IOException
public long getPosition()
getPosition
in interface SharedInputStream
public SharedFileInputStream newStream(long start, long end)
newStream
in interface SharedInputStream
public int read(byte[] buffer) throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int offset, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public long skip(long len) throws IOException
skip
in class InputStream
IOException
public void mark(int limit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public SharedFileInputStream getRoot()
Copyright © 2013 Nuxeo SA. All Rights Reserved.