public class FileOrPackedInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
stream |
| Constructor and Description |
|---|
FileOrPackedInputStream(File file)
Constructor for FileOrPackedInputStream
|
FileOrPackedInputStream(String fileName)
Constructor for FileOrPackedInputStream
|
FileOrPackedInputStream(URL fromUrl)
Constructor for FileOrPackedInputStream
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
ZipEntry |
getEntry()
returns null if this stream is not a zip stream
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
protected InputStream stream
public FileOrPackedInputStream(File file) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic FileOrPackedInputStream(String fileName) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic FileOrPackedInputStream(URL fromUrl) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic ZipEntry getEntry()
public int available()
throws IOException
available in class InputStreamIOExceptionInputStream.available()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionInputStream.close()public void mark(int readlimit)
mark in class InputStreamreadlimit - InputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public void reset()
throws IOException
reset in class InputStreamIOExceptionInputStream.reset()public long skip(long n)
throws IOException
skip in class InputStreamn - IOExceptionInputStream.skip(long)public int read()
throws IOException
read in class InputStreamIOExceptionInputStream.read()public int read(byte[] b)
throws IOException
read in class InputStreamb - IOExceptionInputStream.read(byte[])public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - off - len - IOExceptionInputStream.read(byte[], int, int)Copyright © 2014. All rights reserved.