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, closeprotected 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
IOExceptionprotected SharedFileInputStream(SharedFileInputStream parent, long start, long len) throws IOException
IOExceptionpublic long getPosition()
getPosition in interface javax.mail.internet.SharedInputStreampublic SharedFileInputStream newStream(long start, long end)
newStream in interface javax.mail.internet.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 © 2019 Nuxeo. All rights reserved.