static class JavaPath.ZipEntryWrapper extends Object implements JavaPath.FileWrapper
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
JavaPath.ZipEntryWrapper.WrappedInputStream
A filter input stream
closing
zipFile
when closing the stream. |
| Modifier and Type | Field and Description |
|---|---|
private ZipEntry |
entry |
private ZipFile |
zipFile |
| Constructor and Description |
|---|
ZipEntryWrapper(ZipFile zipFile,
ZipEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
coversZip()
Returns whether the wrapped file is within a zip-archive.
|
File |
getFile()
Returns the file wrapped.
|
InputStream |
getInputStream()
Returns an input stream for the file wrapped.
|
public boolean coversZip()
JavaPath.FileWrappercoversZip in interface JavaPath.FileWrapperboolean value signifying
whether the wrapped file is within a zip-archive.public File getFile() throws IOException
JavaPath.FileWrapperFileWrapper.getFile in interface JavaPath.FileWrapperFile wrapped.IOException - if an error occurspublic InputStream getInputStream() throws IOException
JavaPath.FileWrappergetInputStream in interface JavaPath.FileWrapperInputStream of the file wrapped.IOException - if an error occursCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.