|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openpipeline.pipeline.connector.filesystem.ZipFileSystem
public class ZipFileSystem
A wrapper around a zip file that makes it look like a file system.
| Constructor Summary | |
|---|---|
ZipFileSystem(File file)
|
|
| Method Summary | |
|---|---|
FileSystem |
fetch(String fullname)
Returns the file or directory that has the specified name. |
String |
getFullName()
Get the full name, including an absolute path, of the file. |
InputStream |
getInputStream()
Get an InputStream that contains the data in the file. |
boolean |
getItem(Item item)
Populates an Item with the data contained in this file. |
FileIterator |
getIterator()
If this file is a directory, this iterator iterates over all files and subdirectories in it. |
long |
getLastUpdate()
Returns a timestamp, in millis, of the time the file was last updated. |
long |
getSignature()
Returns a long value that can help identify if a document has changed. |
long |
getSize()
Return the length, in bytes, of the file. |
boolean |
isDirectory()
Returns true if this entry is a directory, and it's possible to call getFileIterator() to iterate over files and subdirectories in it. |
boolean |
isFile()
Returns true if this entry is a file and there is an InputStream available for it. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZipFileSystem(File file)
| Method Detail |
|---|
public String getFullName()
FileSystem
getFullName in interface FileSystempublic InputStream getInputStream()
FileSystem
getInputStream in interface FileSystempublic boolean getItem(Item item)
FileSystem
getItem in interface FileSystem
public FileIterator getIterator()
throws FileNotFoundException
FileSystem
getIterator in interface FileSystemFileNotFoundExceptionpublic long getLastUpdate()
FileSystem
getLastUpdate in interface FileSystempublic long getSignature()
FileSystem
getSignature in interface FileSystempublic boolean isDirectory()
FileSystem
isDirectory in interface FileSystempublic boolean isFile()
FileSystem
isFile in interface FileSystempublic long getSize()
FileSystem
getSize in interface FileSystempublic FileSystem fetch(String fullname)
FileSystem
fetch in interface FileSystemfullname - the name of the file
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||