OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESUncompressBZ2 Class Reference

Function to uncompress files with .bz2 extension. More...

#include <BESUncompressBZ2.h>

Inheritance diagram for BESUncompressBZ2:
Inheritance graph
Collaboration diagram for BESUncompressBZ2:
Collaboration graph

List of all members.

Public Member Functions

virtual void dump (ostream &strm) const =0
 dump the contents of this object to the specified ostream

Static Public Member Functions

static void uncompress (const string &src, const string &target)
 uncompress a file with the .bz2 file extension

Detailed Description

Function to uncompress files with .bz2 extension.

The static function is responsible for uncompressing bz2 files. If the uncompressed target file already exists then this function will overwrite that file. If it doesn't already exist then it is created.

If any errors occur during this operation then a BESContainerStorageException will be thrown

Parameters:
srcthe source file that is to be uncompressed
targetthe target uncompressed file
Exceptions:
BESContainerStorageExceptionif errors in uncompressing the file or if bz2 is not compiled into the BES.

Definition at line 56 of file BESUncompressBZ2.h.


Member Function Documentation

virtual void BESObj::dump ( ostream &  strm) const
pure virtualinherited

dump the contents of this object to the specified ostream

This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...

The inline function below can be used to dump the contents of an OPeNDAOObj object. For example, the object Animal is derived from BESObj. A user could do the following:

Animal *a = new dog( "Sparky" ) ; cout << a << endl ;

And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...

Parameters:
strmC++ i/o stream to dump the object to

Implemented in BESContainer, BESLog, BESPlugin< M >, BESInterface, BESDataHandlerInterface, BESResponseHandler, BESPluginFactory< C >, BESCache, BESContainerStorage, BESDefinitionStorage, BESInfo, BESKeys, BESError, BESApp, BESVersionInfo, CmdClient, Connection, BESServiceRegistry, BESExceptionManager, StandAloneClient, BESContainerStorageFile, PPTConnection, BESContainerStorageList, BESRequestHandler, Socket, TcpSocket, BESTokenizer, BESUncompressManager, BESContainerStorageCatalog, BESDefinitionStorageList, BESCatalogList, BESXMLCommand, BESXMLInfo, BESFileContainer, BESDefineResponseHandler, BESBasicInterface, BESDefinitionStorageVolatile, BESDapErrorInfo, BESDapResponse, BESCatalogUtils, BESRequestHandlerList, BESResponseHandlerList, BESContainerStorageVolatile, UnixSocket, BESDefine, BESCatalog, BESInitializer, BESTextInfo, BESHTMLInfo, BESAggFactory, BESModuleApp, BESSilentInfo, BESCatalogDirectory, BESDapError, BESXMLInterface, BESTransmitter, BESContextManager, BESReturnManager, BESStopWatch, BESXMLDefineCommand, BESReporterList, BESGlobalInit, BESInfoList, BESSetContainerResponseHandler, CmdApp, PPTServer, BESBaseApp, ServerApp, BESAggregationServer, BESDDXResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESMemoryGlobalArea, BESSetContextResponseHandler, BESCatalogResponseHandler, BESDataDDXResponseHandler, BESDelContainersResponseHandler, BESHelpResponseHandler, BESShowContainersResponseHandler, BESDelContainerResponseHandler, BESShowContextResponseHandler, PPTClient, StandAloneApp, BESXMLGetCommand, BESDASResponseHandler, BESDataResponseHandler, BESShowErrorResponseHandler, BESVersionResponseHandler, BESConfigResponseHandler, BESDDSResponseHandler, BESShowDefsResponseHandler, BESStatusResponseHandler, BESDataDDSResponse, BESDDSResponse, BESProcessEncodedString, BESProcIdResponseHandler, BESServicesResponseHandler, BESDASResponse, SocketListener, BESResponseObject, BESServerHandler, BESInternalFatalError, BESSyntaxUserError, BESForbiddenError, BESInternalError, BESNotFoundError, BESXMLGetDataDDXCommand, BESAbstractModule, BESBasicHttpTransmitter, BESBasicTransmitter, ServerHandler, BESXMLCatalogCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLSetContainerCommand, BESXMLSetContextCommand, BESXMLShowCommand, BESXMLShowErrorCommand, BESReporter, BESStreamResponseHandler, BESDapModule, BESDapRequestHandler, BESXMLDapCommandModule, DapModule, and DapRequestHandler.

Referenced by operator<<().

void BESUncompressBZ2::uncompress ( const string &  src_name,
const string &  target 
)
static

uncompress a file with the .bz2 file extension

Parameters:
src_namefile that will be uncompressed
targetfile to uncompress the src file to
Returns:
full path to the uncompressed file

Definition at line 67 of file BESUncompressBZ2.cc.

References CHUNK.

Referenced by BESUncompressManager::BESUncompressManager().


The documentation for this class was generated from the following files: