Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.clientserver.archiveutils
Class SystemTgzHandler


java.lang.Object
  extended by 

org.eclipse.rse.services.clientserver.archiveutils.SystemTarHandler
      extended by 
org.eclipse.rse.services.clientserver.archiveutils.SystemTgzHandler
All Implemented Interfaces:
ISystemArchiveHandler

public class SystemTgzHandler
extends SystemTarHandler

Handler class for .tar.gz and .tgz files.

Since:
3.0

Field Summary
 
Fields inherited from class org.eclipse.rse.services.clientserver.archiveutils. SystemTarHandler
_mutex, file, modTimeDuringCache, vfs
 
Constructor Summary
SystemTgzHandler ( File file)
          constructor for the tgz handler
 
Method Summary
protected   TarFile getTarFile ()
          Gets a tar.gz file from the underlying file.
protected   TarOutputStream getTarOutputStream ( File outputFile)
          Get the tar output stream for a given file.
 
Methods inherited from class org.eclipse.rse.services.clientserver.archiveutils. SystemTarHandler
add, add, add, add, add, add, add, appendEmptyFile, appendFile, changeTarEntry, changeTarEntryName, create, createCache, createFile, createFolder, createTar, createTar, createTarEntry, createVirtualObject, delete, doDelete, exists, exists, extractVirtualDirectory, extractVirtualDirectory, extractVirtualDirectory, extractVirtualDirectory, extractVirtualFile, extractVirtualFile, fullRename, getArchive, getArchiveComment, getClassification, getCommentFor, getCompressedSizeFor, getCompressionMethodFor, getFiles, getSizeFor, getStandardName, getTimeStampFor, getVirtualChild, getVirtualChildFolders, getVirtualChildren, getVirtualChildrenList, getVirtualChildrenList, getVirtualFile, init, listAllFiles, move, rename, replace, replace, replaceFile, search, updateCache, updateTree, updateVirtualChild
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTgzHandler

public SystemTgzHandler(
File file)
                 throws 
IOException
constructor for the tgz handler

Parameters:
file - the .tar.gz or .tgz file
Throws:
IOException
Method Detail

getTarFile

protected 
TarFile getTarFile()
Gets a tar.gz file from the underlying file.

Overrides:
getTarFile in class SystemTarHandler
Returns:
the tar file, or null if the tar file does not exist.

getTarOutputStream

protected 
TarOutputStream getTarOutputStream(
File outputFile)
                                      throws 
FileNotFoundException
Description copied from class: SystemTarHandler
Get the tar output stream for a given file. This method can be overridden by subclass to return compressed output steam if needed.

Overrides:
getTarOutputStream in class SystemTarHandler
Parameters:
outputFile - the output file to create stream
Returns:
OutputStream the output stream to write
Throws:
FileNotFoundException - when the output file doesn't exist

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire