|
RSE Release 3.0 |
||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use ISystemOperationMonitor | |
| org.eclipse.rse.services.clientserver | |
| org.eclipse.rse.services.clientserver.archiveutils | |
| Uses of ISystemOperationMonitor in org.eclipse.rse.services.clientserver |
| Classes in org.eclipse.rse.services.clientserver that implement ISystemOperationMonitor | |
class |
SystemOperationMonitor
A monitor to support cancellation of operations in an environment where Eclipse IProgressMonitor is not available. |
| Methods in org.eclipse.rse.services.clientserver with parameters of type ISystemOperationMonitor | |
int |
SystemReentrantMutex.waitForLock(ISystemOperationMonitor monitor,
long timeout)
Try to acquire the lock maintained by this mutex. |
| Uses of ISystemOperationMonitor in org.eclipse.rse.services.clientserver.archiveutils |
| Methods in org.eclipse.rse.services.clientserver.archiveutils with parameters of type ISystemOperationMonitor | |
VirtualChild[] |
ISystemArchiveHandler.getVirtualChildrenList(ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive. |
VirtualChild[] |
ISystemArchiveHandler.getVirtualChildrenList(String parent,
ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive, whose full paths begin with the given parent prefix. |
VirtualChild[] |
ISystemArchiveHandler.getVirtualChildren(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return the children of a specified node in an archive. |
VirtualChild[] |
ISystemArchiveHandler.getVirtualChildFolders(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return those children of a specified node in an archive, which are folders. |
VirtualChild |
ISystemArchiveHandler.getVirtualFile(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return an archive node specified by a given virtual path. |
boolean |
ISystemArchiveHandler.exists(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Check whether a given virtual node exists in an archive. |
void |
ISystemArchiveHandler.extractVirtualFile(String fullVirtualName,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. |
void |
ISystemArchiveHandler.extractVirtualFile(String fullVirtualName,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. |
void |
ISystemArchiveHandler.extractVirtualDirectory(String dir,
File destinationParent,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
ISystemArchiveHandler.extractVirtualDirectory(String dir,
File destinationParent,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
ISystemArchiveHandler.extractVirtualDirectory(String dir,
File destinationParent,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
ISystemArchiveHandler.extractVirtualDirectory(String dir,
File destinationParent,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
ISystemArchiveHandler.add(File file,
String virtualPath,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, placing
it in the virtual directory virtualPath. |
void |
ISystemArchiveHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. |
void |
ISystemArchiveHandler.add(InputStream stream,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the bytes in the InputStream stream and adds them
as an entry to the archive, saving them in the encoding specified by
encoding if isText is true, and placing it in
the virtual directory virtualPath. |
void |
ISystemArchiveHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
ISystemFileTypes typeRegistery,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. |
void |
ISystemArchiveHandler.add(File[] files,
String virtualPath,
String[] names,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. |
void |
ISystemArchiveHandler.add(File[] files,
String virtualPath,
String[] names,
String[] sourceEncodings,
String[] targetEncodings,
boolean[] isText,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. |
void |
ISystemArchiveHandler.replace(String fullVirtualName,
File file,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compress the file file and replace the virtual file referred
to by fullVirtualName with the compressed file. |
void |
ISystemArchiveHandler.replace(String fullVirtualName,
InputStream stream,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compress the InputStream stream and replace the virtual file
referred to by fullVirtualName with the compressed stream.
|
boolean |
ISystemArchiveHandler.delete(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Deletes the entry fullVirtualName from the archive, and
returns whether or not the deletion was successful. |
void |
ISystemArchiveHandler.rename(String fullVirtualName,
String newName,
ISystemOperationMonitor archiveOperationMonitor)
Renames the entry fullVirtualName to the new name
newName while still leaving the entry in the same virtual
directory. |
void |
ISystemArchiveHandler.move(String fullVirtualName,
String destinationVirtualPath,
ISystemOperationMonitor archiveOperationMonitor)
Moves the entry fullVirtualName to the location specified by
destinationVirtualPath, while leaving the entry with the
same name as before. |
void |
ISystemArchiveHandler.fullRename(String fullVirtualName,
String newFullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Replaces the full name and path of the entry fullVirtualName
with the new full name and path newFullVirtualName. |
File[] |
ISystemArchiveHandler.getFiles(String[] fullNames,
ISystemOperationMonitor archiveOperationMonitor)
Extracts and returns the specified list of virtual files from the archive. |
void |
ISystemArchiveHandler.createFolder(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty folder in the archive. |
void |
ISystemArchiveHandler.createFile(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty file in the archive. |
SystemSearchLineMatch[] |
ISystemArchiveHandler.search(String fullVirtualName,
SystemSearchStringMatcher matcher,
ISystemOperationMonitor archiveOperationMonitor)
Search for text within a virtual file in this archive. |
VirtualChild[] |
SystemZipHandler.getVirtualChildrenList(ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive. |
VirtualChild[] |
SystemZipHandler.getVirtualChildrenList(boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as getVirtualChildrenList(), but you can choose whether to leave the zip file open or closed upon return. |
VirtualChild[] |
SystemZipHandler.getVirtualChildrenList(String parent,
ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive, whose full paths begin with the given parent prefix. |
VirtualChild[] |
SystemZipHandler.getVirtualChildrenList(String parent,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as getVirtualChildrenList(String parent) but you can choose whether or not you want to leave the zipfile open after return. |
VirtualChild[] |
SystemZipHandler.getVirtualChildren(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return the children of a specified node in an archive. |
VirtualChild[] |
SystemZipHandler.getVirtualChildFolders(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return those children of a specified node in an archive, which are folders. |
VirtualChild |
SystemZipHandler.getVirtualFile(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return an archive node specified by a given virtual path. |
boolean |
SystemZipHandler.exists(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Check whether a given virtual node exists in an archive. |
void |
SystemZipHandler.extractVirtualFile(String fullVirtualName,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. |
void |
SystemZipHandler.extractVirtualFile(String fullVirtualName,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. Extracts to the
native encoding, but assumes that the source was archived using
sourceEncoding if isText is true. |
void |
SystemZipHandler.extractVirtualFile(String fullVirtualName,
File destination,
boolean closeZipFile,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Same as extractVirtualFile(String fullVirtualName, File destination) but you can choose whether or not you want to leave the zipfile open after return. |
void |
SystemZipHandler.extractVirtualDirectory(String dir,
File destinationParent,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
SystemZipHandler.extractVirtualDirectory(String dir,
File destinationParent,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. Extracts to the native encoding (if
isText), but assumes that the source was archived using
sourceEncoding. |
void |
SystemZipHandler.extractVirtualDirectory(String dir,
File destinationParent,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. The results will be named
destination.getName() rather than dir's name. |
void |
SystemZipHandler.extractVirtualDirectory(String dir,
File destinationParent,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. The results will be named
destination.getName() rather than dir's name. Extracts to
the native encoding (if isText), but assumes that the source
was archived using sourceEncoding. |
void |
SystemZipHandler.add(File file,
String virtualPath,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, placing
it in the virtual directory virtualPath. Pass the name as
the parameter name. If the virtual path does not exist in
the archive, create it. If file is a directory, copy it and
its contents into the archive, maintaining the tree structure. |
void |
SystemZipHandler.add(InputStream stream,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the bytes in the InputStream stream and adds them
as an entry to the archive, saving them in the encoding specified by
encoding if isText is true, and placing it in
the virtual directory virtualPath. Pass the name as the
parameter name. If the virtual path does not exist in the
archive, create it. |
void |
SystemZipHandler.add(File[] files,
String virtualPath,
String[] names,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. Compresses the array of files files and adds each of them to the archive, placing them in
the virtual directory virtualPath. Pass the names of the
files as the parameter names, where files[i]
has the name names[i]. If the virtual path does not exist in
the archive, create it. |
void |
SystemZipHandler.add(File[] files,
String virtualPath,
String[] names,
String[] sourceEncodings,
String[] targetEncodings,
boolean[] isText,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. Compresses the array of files files and adds each of them to the archive, placing them in
the virtual directory virtualPath. Save the i'th file in the
i'th encoding (if isText[i] is true) specified by encodings.
Pass the names of the files as the parameter names, where
files[i] has the name names[i]. If the virtual
path does not exist in the archive, create it. |
void |
SystemZipHandler.add(File[] files,
String virtualPath,
String[] names,
String[] sourceEncodings,
String[] targetEncodings,
boolean[] isText,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as add(File[] files, String virtualPath, String[] names, String[] encodings) but you can choose whether or not you want to leave the zipfile open after return. |
static boolean |
SystemZipHandler.listAllFiles(File parent,
HashSet found,
ISystemOperationMonitor archiveOperationMonitor)
Helper method. populates found with a collapsed list of
all nodes in the subtree of the file system rooted at parent. |
protected boolean |
SystemZipHandler.recreateZipDeleteEntries(VirtualChild[] vcList,
ZipOutputStream dest,
HashSet omitChildren,
ISystemOperationMonitor archiveOperationMonitor)
Recreates a zip file from a list of virtual children, optionally omitting a group of children whose names are in the Set omitChildren |
protected boolean |
SystemZipHandler.recreateZipRenameEntries(VirtualChild[] vcList,
ZipOutputStream dest,
HashMap names,
ISystemOperationMonitor archiveOperationMonitor)
Recreates a zip file from a list of virtual children, but renaming the one of the VirtualChildren. |
boolean |
SystemZipHandler.delete(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Deletes the entry fullVirtualName from the archive, and
returns whether or not the deletion was successful. |
boolean |
SystemZipHandler.delete(String fullVirtualName,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as delete(String fullVirtualName) but you can choose whether or not you want to leave the zipfile open after return. |
void |
SystemZipHandler.replace(String fullVirtualName,
File file,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compress the file file and replace the virtual file referred
to by fullVirtualName with the compressed file. Pass the
name of the file as the parameter name. |
void |
SystemZipHandler.replace(String fullVirtualName,
File file,
String name,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as replace(String fullVirtualName, File file, String name) but you can choose whether or not you want to leave the zipfile open after return. |
void |
SystemZipHandler.replace(String fullVirtualName,
InputStream stream,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compress the InputStream stream and replace the virtual file
referred to by fullVirtualName with the compressed stream.
Pass the name of the new entry as the parameter name, the
encoding of the entry as encoding and whether or not the
entry isText or not. |
void |
SystemZipHandler.fullRename(String fullVirtualName,
String newFullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Replaces the full name and path of the entry fullVirtualName
with the new full name and path newFullVirtualName. |
void |
SystemZipHandler.fullRename(String fullVirtualName,
String newFullVirtualName,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Same as fullRename(String fullVirtualName, String newFullVirtualName) but you can choose whether or not you want to leave the zipfile open after return. |
void |
SystemZipHandler.move(String fullVirtualName,
String destinationVirtualPath,
ISystemOperationMonitor archiveOperationMonitor)
Moves the entry fullVirtualName to the location specified by
destinationVirtualPath, while leaving the entry with the
same name as before. |
void |
SystemZipHandler.rename(String fullVirtualName,
String newName,
ISystemOperationMonitor archiveOperationMonitor)
Renames the entry fullVirtualName to the new name
newName while still leaving the entry in the same virtual
directory. Returns true if and only if the rename was successful. |
File[] |
SystemZipHandler.getFiles(String[] fullNames,
ISystemOperationMonitor archiveOperationMonitor)
Extracts and returns the specified list of virtual files from the archive. |
void |
SystemZipHandler.createFolder(String name,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty folder in the archive. If parent folders do not exist either, creates them. |
void |
SystemZipHandler.createFile(String name,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty file in the archive. If parent folders do not exist either, creates them. |
protected boolean |
SystemZipHandler.createVirtualObject(String name,
boolean closeZipFile,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty object in the virtual File system, and creates an empty file or folder in the physical zip file. |
protected boolean |
SystemZipHandler.updateVirtualFSIfNecessary(ISystemOperationMonitor archiveOperationMonitor)
If the mod-times of the underlying zip file and the file used to create the virtualFS are different, update the virtualFS. |
SystemSearchLineMatch[] |
SystemZipHandler.search(String fullVirtualName,
SystemSearchStringMatcher matcher,
ISystemOperationMonitor archiveOperationMonitor)
Search for text within a virtual file in this archive. A good implementation will not actually extract the file to disk. |
void |
SystemZipHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
ISystemFileTypes registry,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. Pass
the name as the parameter name. If the virtual path does not
exist in the archive, create it. If file is a directory,
copy it and its contents into the archive, maintaining the tree
structure. |
void |
SystemZipHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. Pass
the name as the parameter name. If the virtual path does not
exist in the archive, create it. If file is a directory,
copy it and its contents into the archive, maintaining the tree
structure. |
VirtualChild[] |
SystemTarHandler.getVirtualChildrenList(ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive. |
VirtualChild[] |
SystemTarHandler.getVirtualChildrenList(String parent,
ISystemOperationMonitor archiveOperationMonitor)
Return a flat list of entries in an archive, whose full paths begin with the given parent prefix. |
VirtualChild[] |
SystemTarHandler.getVirtualChildren(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return the children of a specified node in an archive. |
VirtualChild[] |
SystemTarHandler.getVirtualChildFolders(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return those children of a specified node in an archive, which are folders. |
VirtualChild |
SystemTarHandler.getVirtualFile(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Return an archive node specified by a given virtual path. |
boolean |
SystemTarHandler.exists(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Check whether a given virtual node exists in an archive. |
void |
SystemTarHandler.extractVirtualFile(String fullVirtualName,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. |
void |
SystemTarHandler.extractVirtualDirectory(String fullVirtualName,
File destinationParent,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. |
void |
SystemTarHandler.extractVirtualDirectory(String fullVirtualName,
File destinationParent,
File destination,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. The results will be named
destination.getName() rather than dir's name. |
void |
SystemTarHandler.add(File file,
String virtualPath,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, placing
it in the virtual directory virtualPath. Pass the name as
the parameter name. If the virtual path does not exist in
the archive, create it. If file is a directory, copy it and
its contents into the archive, maintaining the tree structure. |
void |
SystemTarHandler.add(File[] files,
String virtualPath,
String[] names,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. Compresses the array of files files and adds each of them to the archive, placing them in
the virtual directory virtualPath. Pass the names of the
files as the parameter names, where files[i]
has the name names[i]. If the virtual path does not exist in
the archive, create it. |
protected boolean |
SystemTarHandler.createTar(VirtualChild[] children,
TarOutputStream outStream,
HashSet omitChildren,
ISystemOperationMonitor archiveOperationMonitor)
Create a tar file from the given virtual child objects, using the given output stream and omitting the children in the given set. |
void |
SystemTarHandler.replace(String fullVirtualName,
File file,
String name,
ISystemOperationMonitor archiveOperationMonitor)
Compress the file file and replace the virtual file referred
to by fullVirtualName with the compressed file. Pass the
name of the file as the parameter name. |
boolean |
SystemTarHandler.delete(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Deletes the entry fullVirtualName from the archive, and
returns whether or not the deletion was successful. |
protected boolean |
SystemTarHandler.doDelete(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Delete a virtual object. |
void |
SystemTarHandler.rename(String fullVirtualName,
String newName,
ISystemOperationMonitor archiveOperationMonitor)
Renames the entry fullVirtualName to the new name
newName while still leaving the entry in the same virtual
directory. Returns true if and only if the rename was successful. |
void |
SystemTarHandler.move(String fullVirtualName,
String destinationVirtualPath,
ISystemOperationMonitor archiveOperationMonitor)
Moves the entry fullVirtualName to the location specified by
destinationVirtualPath, while leaving the entry with the
same name as before. |
void |
SystemTarHandler.fullRename(String fullVirtualName,
String newFullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Replaces the full name and path of the entry fullVirtualName
with the new full name and path newFullVirtualName. |
protected boolean |
SystemTarHandler.createTar(VirtualChild[] children,
TarOutputStream outStream,
HashMap renameMap,
ISystemOperationMonitor archiveOperationMonitor)
Creates a tar file from the given virtual child objects, using the given output stream and renaming entries according to hash map entries. |
File[] |
SystemTarHandler.getFiles(String[] fullNames,
ISystemOperationMonitor archiveOperationMonitor)
Extracts and returns the specified list of virtual files from the archive. |
void |
SystemTarHandler.createFolder(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty folder in the archive. If parent folders do not exist either, creates them. |
void |
SystemTarHandler.createFile(String fullVirtualName,
ISystemOperationMonitor archiveOperationMonitor)
Creates a new, empty file in the archive. If parent folders do not exist either, creates them. |
protected boolean |
SystemTarHandler.createVirtualObject(String name,
ISystemOperationMonitor archiveOperationMonitor)
Creates a virtual object that does not already exist in the virtual file system. |
SystemSearchLineMatch[] |
SystemTarHandler.search(String fullVirtualName,
SystemSearchStringMatcher matcher,
ISystemOperationMonitor archiveOperationMonitor)
Search for text within a virtual file in this archive. A good implementation will not actually extract the file to disk. |
void |
SystemTarHandler.add(File file,
String virtualPath,
String name,
String encoding,
ISystemFileTypes registry,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if saving in text
mode. |
void |
SystemTarHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. Pass
the name as the parameter name. If the virtual path does not
exist in the archive, create it. If file is a directory,
copy it and its contents into the archive, maintaining the tree
structure. |
void |
SystemTarHandler.add(File[] files,
String virtualPath,
String[] names,
String[] sourceEncodings,
String[] targetEncodings,
boolean[] isTexts,
ISystemOperationMonitor archiveOperationMonitor)
A generalization of the add method. Compresses the array of files files and adds each of them to the archive, placing them in
the virtual directory virtualPath. Save the i'th file in the
i'th encoding (if isText[i] is true) specified by encodings.
Pass the names of the files as the parameter names, where
files[i] has the name names[i]. If the virtual
path does not exist in the archive, create it. |
void |
SystemTarHandler.extractVirtualDirectory(String dir,
File destinationParent,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. The results will be named
destination.getName() rather than dir's name. Extracts to
the native encoding (if isText), but assumes that the source
was archived using sourceEncoding. |
void |
SystemTarHandler.extractVirtualDirectory(String dir,
File destinationParent,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the directory dir (and its children) from the
archive and places the results in the directory
destinationParent. Extracts to the native encoding (if
isText), but assumes that the source was archived using
sourceEncoding. |
void |
SystemTarHandler.extractVirtualFile(String fullVirtualName,
File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Extracts the virtual file named fullVirtualName from the
archive, placing the results in destination. Extracts to the
native encoding, but assumes that the source was archived using
sourceEncoding if isText is true. |
void |
SystemTarHandler.add(InputStream stream,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the bytes in the InputStream stream and adds them
as an entry to the archive, saving them in the encoding specified by
encoding if isText is true, and placing it in
the virtual directory virtualPath. Pass the name as the
parameter name. If the virtual path does not exist in the
archive, create it. |
void |
SystemTarHandler.add(File file,
String virtualPath,
String name,
String sourceEncoding,
String targetEncoding,
ISystemFileTypes typeRegistery,
ISystemOperationMonitor archiveOperationMonitor)
Compresses the file file and adds it to the archive, saving
it in the encoding specified by encoding if the isText is
true. placing it in the virtual directory virtualPath. Pass
the name as the parameter name. If the virtual path does not
exist in the archive, create it. If file is a directory,
copy it and its contents into the archive, maintaining the tree
structure. |
void |
SystemTarHandler.replace(String fullVirtualName,
InputStream stream,
String name,
String sourceEncoding,
String targetEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Compress the InputStream stream and replace the virtual file
referred to by fullVirtualName with the compressed stream.
Pass the name of the new entry as the parameter name, the
encoding of the entry as encoding and whether or not the
entry isText or not. |
File |
VirtualChild.getExtractedFile(String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
|
void |
VirtualChild.getExtractedFile(File destination,
ISystemOperationMonitor archiveOperationMonitor)
Gets the extracted file or directory represented by this VirtualChild from the archive, and replaces the object referred to by destination with that extracted file or directory. |
void |
VirtualChild.getExtractedFile(File destination,
String sourceEncoding,
boolean isText,
ISystemOperationMonitor archiveOperationMonitor)
Gets the extracted file or directory represented by this VirtualChild from the archive, and replaces the object referred to by destination with that extracted file or directory. |
|
RSE Release 3.0 |
||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||