1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_util_jar_JarUtils__
|
5 |
|
|
#define __gnu_java_util_jar_JarUtils__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace util
|
19 |
|
|
{
|
20 |
|
|
namespace jar
|
21 |
|
|
{
|
22 |
|
|
class JarUtils;
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
class gnu::java::util::jar::JarUtils : public ::java::lang::Object
|
30 |
|
|
{
|
31 |
|
|
|
32 |
|
|
public:
|
33 |
|
|
JarUtils();
|
34 |
|
|
static void readMFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::InputStream *);
|
35 |
|
|
static void readSFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::InputStream *);
|
36 |
|
|
private:
|
37 |
|
|
static void readMainSection(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
|
38 |
|
|
static void readIndividualSections(::java::util::Map *, ::java::io::BufferedReader *);
|
39 |
|
|
static void readVersionInfo(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
|
40 |
|
|
static ::java::lang::String * expectHeader(::java::lang::String *, ::java::io::BufferedReader *);
|
41 |
|
|
static void read_attributes(::java::util::jar::Attributes *, ::java::io::BufferedReader *);
|
42 |
|
|
static void readAttribute(::java::util::jar::Attributes *, ::java::lang::String *, ::java::io::BufferedReader *);
|
43 |
|
|
static ::java::lang::String * readHeaderValue(::java::lang::String *, ::java::io::BufferedReader *);
|
44 |
|
|
static ::java::util::jar::Attributes * readSectionName(::java::lang::String *, ::java::io::BufferedReader *, ::java::util::Map *);
|
45 |
|
|
static ::java::lang::String * expectHeader(::java::lang::String *, ::java::io::BufferedReader *, ::java::lang::String *);
|
46 |
|
|
public:
|
47 |
|
|
static void writeMFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::OutputStream *);
|
48 |
|
|
static void writeSFManifest(::java::util::jar::Attributes *, ::java::util::Map *, ::java::io::OutputStream *);
|
49 |
|
|
private:
|
50 |
|
|
static void writeVersionInfo(::java::util::jar::Attributes *, ::java::io::OutputStream *);
|
51 |
|
|
static void writeAttributeEntry(::java::util::Map$Entry *, ::java::io::OutputStream *);
|
52 |
|
|
static void writeHeader(::java::lang::String *, ::java::lang::String *, ::java::io::OutputStream *);
|
53 |
|
|
public:
|
54 |
|
|
static ::java::lang::String * META_INF;
|
55 |
|
|
static ::java::lang::String * DSA_SUFFIX;
|
56 |
|
|
static ::java::lang::String * SF_SUFFIX;
|
57 |
|
|
static ::java::lang::String * NAME;
|
58 |
|
|
static ::java::lang::String * MANIFEST_VERSION;
|
59 |
|
|
static ::java::lang::String * SIGNATURE_VERSION;
|
60 |
|
|
static JArray< jbyte > * CRLF;
|
61 |
|
|
private:
|
62 |
|
|
static ::java::lang::String * DEFAULT_MF_VERSION;
|
63 |
|
|
static ::java::lang::String * DEFAULT_SF_VERSION;
|
64 |
|
|
static ::java::util::jar::Attributes$Name * CREATED_BY;
|
65 |
|
|
static ::java::lang::String * CREATOR;
|
66 |
|
|
public:
|
67 |
|
|
static ::java::lang::Class class$;
|
68 |
|
|
};
|
69 |
|
|
|
70 |
|
|
#endif // __gnu_java_util_jar_JarUtils__
|