org.cresques.io
Class ZipFileFolder
java.lang.Object
org.cresques.io.FileFolder
org.cresques.io.ZipFileFolder
- public class ZipFileFolder
- extends FileFolder
- Author:
- "Luis W. Sevilla" * @author administrador
Field Summary |
java.util.zip.ZipFile |
file
|
Method Summary |
int |
count()
|
java.util.Enumeration |
entries()
|
java.io.InputStream |
getInputStream(java.lang.String fName)
|
java.io.InputStream |
getInputStream(java.util.zip.ZipEntry ze)
|
java.util.zip.ZipEntry |
getZipEntry(java.lang.String fName)
|
static boolean |
isUrl(java.lang.String name)
Analiza un nombre de fichero en formato zip://zipname.zip? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
public java.util.zip.ZipFile file
ZipFileFolder
public ZipFileFolder()
ZipFileFolder
public ZipFileFolder(java.lang.String fName)
throws java.io.IOException
- Constructor.
isUrl
public static boolean isUrl(java.lang.String name)
- Analiza un nombre de fichero en formato zip://zipname.zip?file.ext
getZipEntry
public java.util.zip.ZipEntry getZipEntry(java.lang.String fName)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream(java.lang.String fName)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream(java.util.zip.ZipEntry ze)
throws java.io.IOException
- Throws:
java.io.IOException
count
public int count()
- Specified by:
count
in class FileFolder
entries
public java.util.Enumeration entries()