summaryrefslogtreecommitdiff
path: root/libjava/java/util/zip/GZIPInputStream.h
blob: 20777fabace11389b6d33d3a49a5a74fa860f014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_zip_GZIPInputStream__
#define __java_util_zip_GZIPInputStream__

#pragma interface

#include <java/util/zip/InflaterInputStream.h>
#include <gcj/array.h>


class java::util::zip::GZIPInputStream : public ::java::util::zip::InflaterInputStream
{

public:
  GZIPInputStream(::java::io::InputStream *);
  GZIPInputStream(::java::io::InputStream *, jint);
  virtual void close();
  virtual jint read(JArray< jbyte > *, jint, jint);
private:
  void readHeader();
  void readFooter();
public:
  static const jint GZIP_MAGIC = 35615;
public: // actually package-private
  static const jint FTEXT = 1;
  static const jint FHCRC = 2;
  static const jint FEXTRA = 4;
  static const jint FNAME = 8;
  static const jint FCOMMENT = 16;
public: // actually protected
  ::java::util::zip::CRC32 * __attribute__((aligned(__alignof__( ::java::util::zip::InflaterInputStream)))) crc;
  jboolean eos;
private:
  jboolean readGZIPHeader;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_zip_GZIPInputStream__