summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/util/jar/JarUtils.h
blob: 1d12845fd65e53490738ddd9496df5e705746399 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_util_jar_JarUtils__
#define __gnu_java_util_jar_JarUtils__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace util
      {
        namespace jar
        {
            class JarUtils;
        }
      }
    }
  }
}

class gnu::java::util::jar::JarUtils : public ::java::lang::Object
{

public:
  JarUtils();
  static void readMFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::InputStream *);
  static void readSFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::InputStream *);
private:
  static void readMainSection(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
  static void readIndividualSections(::java::util::Map *, ::java::io::BufferedReader *);
  static void readVersionInfo(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
  static ::java::lang::String * expectHeader(::java::lang::String *, ::java::io::BufferedReader *);
  static void read_attributes(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
  static void readAttribute(::java::util::jar::Attributes *, ::java::lang::String *, ::java::io::BufferedReader *);
  static ::java::lang::String * readHeaderValue(::java::lang::String *, ::java::io::BufferedReader *);
  static ::java::util::jar::Attributes * readSectionName(::java::lang::String *, ::java::io::BufferedReader *, ::java::util::Map *);
  static ::java::lang::String * expectHeader(::java::lang::String *, ::java::io::BufferedReader *, ::java::lang::String *);
public:
  static void writeMFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::OutputStream *);
  static void writeSFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::OutputStream *);
private:
  static void writeVersionInfo(::java::util::jar::Attributes *, ::java::io::OutputStream *);
  static void writeAttributeEntry(::java::util::Map$Entry *, ::java::io::OutputStream *);
  static void writeHeader(::java::lang::String *, ::java::lang::String *, ::java::io::OutputStream *);
public:
  static ::java::lang::String * META_INF;
  static ::java::lang::String * DSA_SUFFIX;
  static ::java::lang::String * SF_SUFFIX;
  static ::java::lang::String * NAME;
  static ::java::lang::String * MANIFEST_VERSION;
  static ::java::lang::String * SIGNATURE_VERSION;
  static JArray< jbyte > * CRLF;
private:
  static ::java::lang::String * DEFAULT_MF_VERSION;
  static ::java::lang::String * DEFAULT_SF_VERSION;
  static ::java::util::jar::Attributes$Name * CREATED_BY;
  static ::java::lang::String * CREATOR;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_util_jar_JarUtils__