public class SharedRandomContentInputStream extends BufferedInputStream implements javax.mail.internet.SharedInputStream
SharedInputStreambuf, count, marklimit, markposin| Constructor and Description |
|---|
SharedRandomContentInputStream(FileObject fo) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calcFilePosition(long nadd) |
void |
close() |
void |
closeAll() |
protected long |
getFilePosition() |
long |
getPosition() |
void |
mark(int readlimit) |
InputStream |
newStream(long start,
long end) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, markSupportedreadpublic SharedRandomContentInputStream(FileObject fo) throws FileSystemException
FileSystemExceptionpublic int read()
throws IOException
read in class BufferedInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class BufferedInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class BufferedInputStreamIOExceptionprotected long getFilePosition()
protected long calcFilePosition(long nadd)
public void mark(int readlimit)
mark in class BufferedInputStreampublic void reset()
throws IOException
reset in class BufferedInputStreamIOExceptionpublic long getPosition()
getPosition in interface javax.mail.internet.SharedInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BufferedInputStreamIOExceptionpublic InputStream newStream(long start, long end)
newStream in interface javax.mail.internet.SharedInputStreampublic void closeAll()
throws IOException
IOExceptionCopyright © 2002–2016 WSO2. All rights reserved.