OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESUncompress3Z Class Referenceabstract

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

#include <BESUncompress3Z.h>

Inheritance diagram for BESUncompress3Z:
Inheritance graph
Collaboration diagram for BESUncompress3Z:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

static void uncompress (const string &src, int fd)
 uncompress a file with the .gz file extension More...
 

Detailed Description

Function to uncompress files with .Z extension.

The static function is responsible for uncompressing Z 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
Returns
the target uncompressed file
Exceptions
BESContainerStorageExceptionif errors in uncompressing the file

Definition at line 55 of file BESUncompress3Z.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, BESContainerStorage, BESResponseHandler, BESPluginFactory< C >, BESDataHandlerInterface, BESCache, BESCatalogEntry, BESDefinitionStorage, BESCache3, BESInfo, BESKeys, BESError, BESApp, BESVersionInfo, CmdClient, BESCatalogUtils, Connection, BESServiceRegistry, BESContainerStorageFile, BESExceptionManager, StandAloneClient, BESCatalogList, PPTConnection, BESContainerStorageList, BESRequestHandler, Socket, TcpSocket, BESTokenizer, BESUncompressManager, BESContainerStorageCatalog, BESDefinitionStorageList, BESXMLCommand, BESXMLInfo, BESFileContainer, BESCatalog, BESDefineResponseHandler, BESBasicInterface, BESDefinitionStorageVolatile, BESContainerStorageVolatile, DaemonCommandHandler, BESDapErrorInfo, BESDapResponse, BESRequestHandlerList, BESResponseHandlerList, UnixSocket, BESDefine, BESTextInfo, BESHTMLInfo, BESAggFactory, BESModuleApp, BESSilentInfo, BESUncompressManager3, BESDapError, BESXMLInterface, BESTransmitter, BESContextManager, BESReturnManager, BESStopWatch, BESXMLDefineCommand, BESReporterList, BESInfoList, BESSetContainerResponseHandler, CmdApp, PPTServer, BESBaseApp, BESAggregationServer, BESDDXResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESMemoryGlobalArea, BESSetContextResponseHandler, BESCatalogResponseHandler, BESDataDDXResponseHandler, BESDelContainersResponseHandler, BESHelpResponseHandler, BESShowContainersResponseHandler, ServerApp, BESXMLGetCommand, BESCatalogDirectory, BESDelContainerResponseHandler, BESShowContextResponseHandler, PPTClient, StandAloneApp, 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 BESUncompress3Z::uncompress ( const string &  src,
int  fd 
)
static

uncompress a file with the .gz file extension

Parameters
srcfile that will be uncompressed
targetfile to uncompress the src file to

Definition at line 54 of file BESUncompress3Z.cc.

References BESDEBUG, BIT_MASK, BITS, BLOCK_MODE, CLEAR, de_stack, FIRST, FIRSTBYTE, HSIZE, INIT_BITS, MAXCODE, and SECONDBYTE.


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