mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 02:23:37 +00:00
20 lines
625 B
C++
20 lines
625 B
C++
#pragma once
|
|
// 4J Stu - We are not using GZIP compression, so this is just a pass through
|
|
// class
|
|
|
|
#include "InputStream.h"
|
|
|
|
class GZIPInputStream : public InputStream {
|
|
private:
|
|
InputStream* stream;
|
|
|
|
public:
|
|
GZIPInputStream(InputStream* out) : stream(out) {};
|
|
virtual int read() { return stream->read(); };
|
|
virtual int read(byteArray b) { return stream->read(b); };
|
|
virtual int read(byteArray b, unsigned int offset, unsigned int length) {
|
|
return stream->read(b, offset, length);
|
|
};
|
|
virtual void close() { return stream->close(); };
|
|
virtual int64_t skip(int64_t n) { return 0; };
|
|
}; |