OpenMS
2.7.0
|
Implements the BinInputStream class of the xerces-c library in order to read gzip compressed XML files. More...
#include <OpenMS/FORMAT/GzipInputStream.h>
Public Member Functions | |
GzipInputStream (const String &file_name) | |
Constructor. More... | |
GzipInputStream (const char *const file_name) | |
~GzipInputStream () override | |
Destructor. More... | |
bool | getIsOpen () const |
returns true if file is open More... | |
XMLFilePos | curPos () const override |
returns the current position in the file More... | |
XMLSize_t | readBytes (XMLByte *const to_fill, const XMLSize_t max_to_read) override |
writes bytes into buffer from file More... | |
const XMLCh * | getContentType () const override |
returns 0 More... | |
GzipInputStream ()=delete | |
GzipInputStream (const GzipInputStream &stream)=delete | |
GzipInputStream & | operator= (const GzipInputStream &stream)=delete |
Private Attributes | |
GzipIfstream * | gzip_ = nullptr |
pointer to an compression stream More... | |
XMLSize_t | file_current_index_ |
current index of the actual file More... | |
Implements the BinInputStream class of the xerces-c library in order to read gzip compressed XML files.
|
explicit |
Constructor.
|
explicit |
|
override |
Destructor.
|
delete |
|
delete |
|
inlineoverride |
returns the current position in the file
References GzipInputStream::file_current_index_.
|
override |
returns 0
If no content type is provided for the data, 0 is returned (as is the case here, see xerces docs).
|
inline |
returns true if file is open
References GzipInputStream::gzip_, and GzipIfstream::isOpen().
|
delete |
|
override |
writes bytes into buffer from file
to_fill | is the buffer which is written to |
max_to_read | is the size of the buffer |
|
private |
current index of the actual file
Referenced by GzipInputStream::curPos().
|
private |
pointer to an compression stream
Referenced by GzipInputStream::getIsOpen().