public class FileZip extends FileRemote
FileAccessZip.FileRemote.CallbackEvent, FileRemote.Ecmp, FileRemote.FileRemoteAccessorSelector, FileRemote.InternalAccess, FileRemote.XXXCallbackCmd| Modifier and Type | Field and Description |
|---|---|
(package private) TreeNodeBase.TreeNode<FileZip> |
children
All files which are contained in that directory if it is a directory entry
in the zip file or if it is the top node in zipfile.
|
private static long |
serialVersionUID |
(package private) java.lang.String |
sPathZip
The path of the file inside the zip file.
|
(package private) FileRemote |
theFile |
(package private) java.util.zip.ZipEntry |
zipEntry
The entry of the file in the zip file. java.util.zip
|
(package private) java.util.zip.ZipFile |
zipFile
The ZipFile data. java.util.zip
|
clusterOfApplication, date, dateCreation, dateLastAccess, device, evSrc, flags, itsCluster, length, mAbsPath, mark, mCanRead, mCanReadAny, mCanReadGrp, mCanWrite, mCanWriteAny, mCanWriteGrp, mDirectory, mExecute, mExecuteAny, mExecuteGrp, mExist, mFile, mHidden, modeCmprLogComparedFiles, modeCmprLogMissing1File, modeCmprLogMissing2File, modeCmprLogNotEqualFiles, modeCopyCreateAsk, modeCopyCreateMask, modeCopyCreateNever, modeCopyCreateYes, modeCopyExistAll, modeCopyExistAsk, modeCopyExistMask, modeCopyExistNewer, modeCopyExistOlder, modeCopyExistSkip, modeCopyReadOnlyAks, modeCopyReadOnlyMask, modeCopyReadOnlyNever, modeCopyReadOnlyOverwrite, mRefreshChildPending, mRelativePath, mRoot, mShouldRefresh, mSymLinkedPath, mTested, mThreadIsRunning, oFile, parent, path, sCanonicalPath, sDir, sFile, timeChildren, timeRefresh, versionselect, select2, select2Parent, selectParent| Constructor and Description |
|---|
FileZip(FileRemote parent) |
FileZip(FileRemote theFile,
java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry) |
FileZip(FileZip parent,
FileRemote theFile,
java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns true if the file seems to be existing.
|
java.lang.String |
getName() |
java.lang.String |
getParent()
Returns the parent path, it is the directory path.
|
FileRemote |
getParentFile()
Gets the parent directory.
|
boolean |
isDirectory()
Returns true if the FileRemote instance was created as directory
or if any
#refreshProperties(CallbackEvent) call before this call
has detected that it is an directory. |
FileZip[] |
listFiles()
This method overrides java.io.File.listFiles() but returns Objects from this class type.
|
static void |
main(java.lang.String[] args)
Only for test.
|
java.lang.String |
toString() |
_setProperties, abortAction, canExecute, canRead, canWrite, check, chgProps, chgPropsRecursive, child, children, cleanChildren, cmdRemote, cmprDirTreeTo, copyChecked, copyDirTreeTo, copyDirTreeTo, copyTo, copyTo, countAllFileLength, createChildrenList, createNewFile, creationTime, delete, delete, deleteFilesDirTree, device, file, fromFile, get, get, getAbsolutePath, getAccessorSelector, getCanonicalPath, getChild, getCreateMark, getDir, getDir, getDirChars, getFile, getFile, getFlags, getFlagsTested, getMark, getPath, getPathChars, getStateDevice, ident, internalAccess, isChild, isFile, isHidden, isMarked, isParent, isRoot, isSymbolicLink, isTested, isTested, lastAccessTime, lastModified, length, listFiles, mark, mkdir, mkdir, mkdirs, moveTo, oFile, openInputStream, openOutputStream, openRead, openWrite, path, putNewChild, refreshAndMark, refreshAndSearch, refreshProperties, refreshProperties, refreshPropertiesAndChildren, renameTo, renameTo, resetMarked, resetMarkedRecurs, sameDevice, search, setAccessorSelector, setCanonicalAbsPath, setDirShouldRefresh, setFileObject, setLastModified, setMarked, setMarked, setNonMarked, setNonMarkedRecursively, setPathTo, setShouldRefresh, setSymbolicLinkedPath, shouldRefresh, subdir, walkLocal, walkRemote, XXXcopyTocompareTo, createTempFile, createTempFile, deleteOnExit, equals, getAbsoluteFile, getCanonicalFile, getFreeSpace, getTotalSpace, getUsableSpace, hashCode, isAbsolute, list, list, listFiles, listRoots, setExecutable, setExecutable, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toURI, toURLprivate static final long serialVersionUID
final FileRemote theFile
final java.util.zip.ZipFile zipFile
final java.util.zip.ZipEntry zipEntry
final java.lang.String sPathZip
TreeNodeBase.TreeNode<FileZip> children
public FileZip(FileRemote parent)
public FileZip(FileZip parent, FileRemote theFile, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry zipEntry)
public FileZip(FileRemote theFile, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry zipEntry)
public FileZip[] listFiles()
FileRemotelistFiles in class FileRemoteIf the children files are gotten from the maybe remote file system, this method returns immediately
with that result. But it may be out of date. The user can call {@link #refreshPropertiesAndChildren(CallbackEvent)}
to get the new situation.
If the children are not gotten up to now they are gotten yet. The method blocks until the information is gotten,
see {@link FileRemoteAccessor#refreshFilePropertiesAndChildren(FileRemote, EventCmdPingPongType)} with null as event parameter.public boolean isDirectory()
FileRemote#refreshProperties(CallbackEvent) call before this call
has detected that it is an directory.isDirectory in class FileRemoteFile.isDirectory()public boolean exists()
FileRemote#refreshProperties(CallbackEvent) is called yet. But if the file was refreshed already,
the existing flag is returned only. To assure that the existing of the file is correct,
call #refreshProperties(CallbackEvent) before this call on a proper time.
Note that an invocation of File.exists() may have the same problem. The file
may exist in the time of this call, but it may not exist ever more in the future if the application
will deal with it. Usage of a file for opening a reader or writer without Exception is the only one
assurance whether the file exists really. Note that a deletion of an opened file will be prevent
from the operation system.exists in class FileRemoteFile.exists()public java.lang.String getName()
getName in interface TreeNodeNamed_ifcgetName in class FileRemotepublic FileRemote getParentFile()
FileRemoteFileRemote.sDir.getParentFile in class FileRemotepublic java.lang.String getParent()
FileRemotegetParent in class FileRemoteFile.getParent()public java.lang.String toString()
toString in class FileRemotepublic static void main(java.lang.String[] args)
args -