public abstract class ZipFileSystem extends FileSystem
Modifier and Type | Class and Description |
---|---|
class |
ZipFileSystem.ExtendedZipEntry |
Modifier and Type | Field and Description |
---|---|
protected boolean |
loaded |
altFileNames, fileChooser, FNAME_CONVERTIBLE_CHARS, FS, FSCH, isURL, ISURL, rb, root, WINFS, WINFSCH
Constructor and Description |
---|
ZipFileSystem(ResourceBridge rb) |
ZipFileSystem(String rootPath,
String zipFileName,
ResourceBridge rb) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static ZipFileSystem |
createZipFileSystem(String rootPath,
String zipFileName,
ResourceBridge rb) |
boolean |
fileExists(String fName) |
byte[] |
getBytes(String fileName) |
String[] |
getEntries(String ext) |
ZipFileSystem.ExtendedZipEntry |
getEntry(String fName) |
long |
getFileLength(String fileName) |
String |
getFullRoot() |
Image |
getImageFile(String fName) |
InputStream |
getInputStream(String fName) |
Object |
getMediaDataSource(String fName) |
String |
getZipName() |
buildDoc, changeBase, chooseFile, chooseFiles, createFileSystem, createFileSystem, createSecureFileOutputStream, duplicate, exploreFiles, finalize, getCanonicalNameOf, getCanonicalNameOf, getExtendedByteArrayInputStream, getFileChooser, getFileNameOf, getFullFileNamePath, getPathPartOf, getRelativeFileNamePath, getUrl, getValidFileName, getXMLDocument, getXMLDocument, isStrUrl, isUrlBased, open, stdFn, sysFn
public ZipFileSystem(ResourceBridge rb)
public ZipFileSystem(String rootPath, String zipFileName, ResourceBridge rb)
public static ZipFileSystem createZipFileSystem(String rootPath, String zipFileName, ResourceBridge rb) throws Exception
Exception
public String getFullRoot()
getFullRoot
in class FileSystem
public String getZipName()
public ZipFileSystem.ExtendedZipEntry getEntry(String fName)
public byte[] getBytes(String fileName) throws IOException
getBytes
in class FileSystem
IOException
public boolean fileExists(String fName)
fileExists
in class FileSystem
public long getFileLength(String fileName) throws IOException
getFileLength
in class FileSystem
IOException
public Image getImageFile(String fName) throws Exception
getImageFile
in class FileSystem
Exception
public InputStream getInputStream(String fName) throws IOException
getInputStream
in class FileSystem
IOException
public Object getMediaDataSource(String fName) throws Exception
getMediaDataSource
in class FileSystem
Exception
public void close()
close
in class FileSystem
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.