summaryrefslogtreecommitdiff
path: root/libjava/java/util/zip/ZipOutputStream.h
blob: 0de152efc636911a50a03d5fed92f6afb75a3f10 (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
42
43
44
45
46
47
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_zip_ZipOutputStream__
#define __java_util_zip_ZipOutputStream__

#pragma interface

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


class java::util::zip::ZipOutputStream : public ::java::util::zip::DeflaterOutputStream
{

public:
  ZipOutputStream(::java::io::OutputStream *);
  virtual void setComment(::java::lang::String *);
  virtual void setMethod(jint);
  virtual void setLevel(jint);
private:
  void writeLeShort(jint);
  void writeLeInt(jint);
  void writeLeInt(jlong);
public:
  virtual void putNextEntry(::java::util::zip::ZipEntry *);
  virtual void closeEntry();
  virtual void write(JArray< jbyte > *, jint, jint);
  virtual void finish();
private:
  ::java::util::Vector * __attribute__((aligned(__alignof__( ::java::util::zip::DeflaterOutputStream)))) entries;
  ::java::util::zip::CRC32 * crc;
  ::java::util::zip::ZipEntry * curEntry;
  jint curMethod;
  jint size;
  jint offset;
  JArray< jbyte > * zipComment;
  jint defaultMethod;
  static const jint ZIP_STORED_VERSION = 10;
  static const jint ZIP_DEFLATED_VERSION = 20;
public:
  static const jint STORED = 0;
  static const jint DEFLATED = 8;
  static ::java::lang::Class class$;
};

#endif // __java_util_zip_ZipOutputStream__