public class SharedFileInputStream extends InputStream implements javax.mail.internet.SharedInputStream
Modifier and Type | Field and Description |
---|---|
protected long |
current |
protected File |
file |
protected InputStream |
in |
protected long |
length |
protected long |
marked |
protected SharedFileInputStream |
parent |
protected long |
start |
Modifier | Constructor and Description |
---|---|
|
SharedFileInputStream(File file) |
protected |
SharedFileInputStream(SharedFileInputStream parent,
long start,
long len) |
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
protected final InputStream in
protected final SharedFileInputStream parent
protected final long length
protected final long start
protected long current
protected long marked
public SharedFileInputStream(File file) throws IOException
IOException
protected SharedFileInputStream(SharedFileInputStream parent, long start, long len) throws IOException
IOException
public long getPosition()
getPosition
in interface javax.mail.internet.SharedInputStream
public SharedFileInputStream newStream(long start, long end)
newStream
in interface javax.mail.internet.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 © 2017 Nuxeo. All rights reserved.