|
Class: Archiver
Object
|
+--Archiver
|
+--Archiver::CompressedFile
|
+--Archiver::CompressedTarArchive
|
+--Archiver::MultiFileArchive
- Package:
- stx:libbasic2
- Category:
- System-Support-FileFormats
- Version:
- rev:
1.65
date: 2019/07/31 15:09:00
- user: cg
- file: Archiver.st directory: libbasic2
- module: stx stc-classLibrary: libbasic2
this is a soon to be obsoleted helper class for the fileBrowser.
it wraps OS-specific command line archivers (tar, zip, rar, etc)
into a common protocol useful to display an archive's contents.
will be removed - do not use for your projects.
classAccess
-
arArchive
-
-
gzipArchive
-
-
lzipArchive
-
-
tarArchive
-
-
tarGZipArchive
-
-
zipArchive
-
columns
-
columns
-
command strings
-
stringWithQuotedFileBaseNames: aColOfFiles
-
commandOutputReader
-
commandOutputParser
-
-
commandOutputParserClass
-
initialization
-
initializeMimeTypeMapping
-
abstract - special handling
instance creation
-
classForMimeType: aMimeType fileName: aFileNameOrNil
-
hard coded heuristics...
usage example(s):
self classForMimeType:nil fileName:nil
self classForMimeType:'application/x-tar-compressed' fileName:nil
self classForMimeType:'application/x-tar' fileName:nil
self classForMimeType:'application/x-foo' fileName:nil
self classForMimeType:'application/x-squeak-archive' fileName:nil
self classForMimeType:'application/java-archive' fileName:nil
'foo.sar' asFilename mimeTypeFromName
'foo.jar' asFilename mimeTypeFromName
'foo.a' asFilename mimeTypeFromName
|
-
newFor: aFilename
-
-
with: aFilename
-
queries
-
canAddFiles
-
-
canDragnDrop
-
-
canExtractFiles
-
-
canRemoveFiles
-
-
canViewFile
-
-
hasTitleLine
-
-
isAbstract
-
accessing
-
errorStream
-
return the value of the instance variable 'errorStream' (automatically generated)
-
errorStream: something
-
set the value of the instance variable 'errorStream' (automatically generated)
-
fileName
-
return the value of the instance variable 'fileName' (automatically generated)
-
fileName: something
-
set the value of the instance variable 'fileName' (automatically generated)
-
outStream
-
return the value of the instance variable 'outStream' (automatically generated)
-
outStream: something
-
set the value of the instance variable 'outStream' (automatically generated)
-
outStream: anOutStream errorStream: anErrorStream synchron: aBoolean
-
-
process
-
return the value of the instance variable 'process' (automatically generated)
-
process: something
-
set the value of the instance variable 'process' (automatically generated)
-
synchron
-
return the value of the instance variable 'synchron' (automatically generated)
-
synchron: something
-
set the value of the instance variable 'synchron' (automatically generated)
-
temporaryDirectory
-
return the value of the instance variable 'temporaryDirectory' (automatically generated)
actions
-
extractFilesTo: aDirectory
-
-
getCommandToListFiles: aColOfFiles
-
-
listFiles: aColOfFiles
-
-
removeFilesFromArchive: aColOfFiles
-
actions-basic
-
addFilesToArchive: colOfFiles
-
-
extractFiles: aColOfFilesOrNil to: aDirectory
-
actions-private
-
removeTemporaryDirectory
-
-
stopProcess
-
command execution
-
executeCommand: cmd directory: aDirectory
-
do it lineWise, since outStream may be an ActorStream
-
isValidOutputLine: line
-
return true, if line contains a valid list-files output line
** This method raises an error - it must be redefined in concrete classes **
-
listFilesReader
-
command strings
-
addDoubleQuotedFilenames: collectionOfFilenames toStream: aStream
-
initialization & release
-
release
-
ArArchive
ArchiverOutputParser
BZ2Compressed
CompressedFile
CompressedTarArchive
GZipCompressed
LZipArchive
MultiFileArchive
TarArchive
TarBZ2Archive
TarGZipArchive
XarArchive
ZipArchive
|