diff options
Diffstat (limited to 'libjava/java/util/jar')
-rw-r--r-- | libjava/java/util/jar/Attributes$Name.h | 43 | ||||
-rw-r--r-- | libjava/java/util/jar/Attributes.h | 45 | ||||
-rw-r--r-- | libjava/java/util/jar/JarEntry.h | 42 | ||||
-rw-r--r-- | libjava/java/util/jar/JarException.h | 23 | ||||
-rw-r--r-- | libjava/java/util/jar/JarFile$EntryInputStream.h | 49 | ||||
-rw-r--r-- | libjava/java/util/jar/JarFile$JarEnumeration.h | 27 | ||||
-rw-r--r-- | libjava/java/util/jar/JarFile.h | 103 | ||||
-rw-r--r-- | libjava/java/util/jar/JarInputStream.h | 35 | ||||
-rw-r--r-- | libjava/java/util/jar/JarOutputStream.h | 24 | ||||
-rw-r--r-- | libjava/java/util/jar/Manifest.h | 34 |
10 files changed, 425 insertions, 0 deletions
diff --git a/libjava/java/util/jar/Attributes$Name.h b/libjava/java/util/jar/Attributes$Name.h new file mode 100644 index 000000000..867bcea77 --- /dev/null +++ b/libjava/java/util/jar/Attributes$Name.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_Attributes$Name__ +#define __java_util_jar_Attributes$Name__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::jar::Attributes$Name : public ::java::lang::Object +{ + +public: + Attributes$Name(::java::lang::String *); + virtual jint hashCode(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); + static ::java::util::jar::Attributes$Name * MANIFEST_VERSION; + static ::java::util::jar::Attributes$Name * SIGNATURE_VERSION; + static ::java::util::jar::Attributes$Name * CLASS_PATH; + static ::java::util::jar::Attributes$Name * MAIN_CLASS; + static ::java::util::jar::Attributes$Name * EXTENSION_LIST; + static ::java::util::jar::Attributes$Name * EXTENSION_NAME; + static ::java::util::jar::Attributes$Name * EXTENSION_INSTALLATION; + static ::java::util::jar::Attributes$Name * IMPLEMENTATION_TITLE; + static ::java::util::jar::Attributes$Name * IMPLEMENTATION_VERSION; + static ::java::util::jar::Attributes$Name * IMPLEMENTATION_VENDOR; + static ::java::util::jar::Attributes$Name * IMPLEMENTATION_VENDOR_ID; + static ::java::util::jar::Attributes$Name * IMPLEMENTATION_URL; + static ::java::util::jar::Attributes$Name * SPECIFICATION_TITLE; + static ::java::util::jar::Attributes$Name * SPECIFICATION_VERSION; + static ::java::util::jar::Attributes$Name * SPECIFICATION_VENDOR; + static ::java::util::jar::Attributes$Name * SEALED; + static ::java::util::jar::Attributes$Name * CONTENT_TYPE; +private: + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name; + ::java::lang::String * origName; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_Attributes$Name__ diff --git a/libjava/java/util/jar/Attributes.h b/libjava/java/util/jar/Attributes.h new file mode 100644 index 000000000..628be03df --- /dev/null +++ b/libjava/java/util/jar/Attributes.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_Attributes__ +#define __java_util_jar_Attributes__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::jar::Attributes : public ::java::lang::Object +{ + +public: + Attributes(); + Attributes(jint); + Attributes(::java::util::jar::Attributes *); + virtual ::java::lang::String * getValue(::java::lang::String *); + virtual ::java::lang::String * getValue(::java::util::jar::Attributes$Name *); + virtual ::java::lang::String * putValue(::java::lang::String *, ::java::lang::String *); +private: + ::java::lang::String * putValue(::java::util::jar::Attributes$Name *, ::java::lang::String *); +public: + virtual ::java::lang::Object * clone(); + virtual void clear(); + virtual jboolean containsKey(::java::lang::Object *); + virtual jboolean containsValue(::java::lang::Object *); + virtual ::java::util::Set * entrySet(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::Object * get(::java::lang::Object *); + virtual jint hashCode(); + virtual jboolean isEmpty(); + virtual ::java::util::Set * keySet(); + virtual ::java::lang::Object * put(::java::lang::Object *, ::java::lang::Object *); + virtual void putAll(::java::util::Map *); + virtual ::java::lang::Object * remove(::java::lang::Object *); + virtual jint size(); + virtual ::java::util::Collection * values(); +public: // actually protected + ::java::util::Map * __attribute__((aligned(__alignof__( ::java::lang::Object)))) map; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_Attributes__ diff --git a/libjava/java/util/jar/JarEntry.h b/libjava/java/util/jar/JarEntry.h new file mode 100644 index 000000000..c95ab9486 --- /dev/null +++ b/libjava/java/util/jar/JarEntry.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarEntry__ +#define __java_util_jar_JarEntry__ + +#pragma interface + +#include <java/util/zip/ZipEntry.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace security + { + namespace cert + { + class Certificate; + } + } + } +} + +class java::util::jar::JarEntry : public ::java::util::zip::ZipEntry +{ + +public: + JarEntry(::java::lang::String *); + JarEntry(::java::util::zip::ZipEntry *); + JarEntry(::java::util::jar::JarEntry *); + virtual ::java::util::jar::Attributes * getAttributes(); + virtual JArray< ::java::security::cert::Certificate * > * getCertificates(); +public: // actually package-private + ::java::util::jar::Attributes * __attribute__((aligned(__alignof__( ::java::util::zip::ZipEntry)))) attr; + ::java::util::jar::JarFile * jarfile; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarEntry__ diff --git a/libjava/java/util/jar/JarException.h b/libjava/java/util/jar/JarException.h new file mode 100644 index 000000000..4ea6da37b --- /dev/null +++ b/libjava/java/util/jar/JarException.h @@ -0,0 +1,23 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarException__ +#define __java_util_jar_JarException__ + +#pragma interface + +#include <java/util/zip/ZipException.h> + +class java::util::jar::JarException : public ::java::util::zip::ZipException +{ + +public: + JarException(); + JarException(::java::lang::String *); +private: + static const jlong serialVersionUID = 7159778400963954473LL; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarException__ diff --git a/libjava/java/util/jar/JarFile$EntryInputStream.h b/libjava/java/util/jar/JarFile$EntryInputStream.h new file mode 100644 index 000000000..cf68dbf45 --- /dev/null +++ b/libjava/java/util/jar/JarFile$EntryInputStream.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarFile$EntryInputStream__ +#define __java_util_jar_JarFile$EntryInputStream__ + +#pragma interface + +#include <java/io/FilterInputStream.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace security + { + class MessageDigest; + } + } +} + +class java::util::jar::JarFile$EntryInputStream : public ::java::io::FilterInputStream +{ + +public: // actually package-private + JarFile$EntryInputStream(::java::util::zip::ZipEntry *, ::java::io::InputStream *, ::java::util::jar::JarFile *); +public: + virtual jboolean markSupported(); + virtual void mark(jint); + virtual void reset(); + virtual jint read(); + virtual jint read(JArray< jbyte > *, jint, jint); + virtual jint read(JArray< jbyte > *); + virtual jlong skip(jlong); +private: + void eof(); + ::java::util::jar::JarFile * __attribute__((aligned(__alignof__( ::java::io::FilterInputStream)))) jarfile; + jlong length; + jlong pos; + ::java::util::zip::ZipEntry * entry; + JArray< JArray< jbyte > * > * hashes; + JArray< ::java::security::MessageDigest * > * md; + jboolean checked; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarFile$EntryInputStream__ diff --git a/libjava/java/util/jar/JarFile$JarEnumeration.h b/libjava/java/util/jar/JarFile$JarEnumeration.h new file mode 100644 index 000000000..60aea6996 --- /dev/null +++ b/libjava/java/util/jar/JarFile$JarEnumeration.h @@ -0,0 +1,27 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarFile$JarEnumeration__ +#define __java_util_jar_JarFile$JarEnumeration__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::jar::JarFile$JarEnumeration : public ::java::lang::Object +{ + +public: // actually package-private + JarFile$JarEnumeration(::java::util::Enumeration *, ::java::util::jar::JarFile *); +public: + virtual jboolean hasMoreElements(); + virtual ::java::util::jar::JarEntry * JarFile$JarEnumeration$nextElement(); + virtual ::java::lang::Object * nextElement(); +private: + ::java::util::Enumeration * __attribute__((aligned(__alignof__( ::java::lang::Object)))) entries; + ::java::util::jar::JarFile * jarfile; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarFile$JarEnumeration__ diff --git a/libjava/java/util/jar/JarFile.h b/libjava/java/util/jar/JarFile.h new file mode 100644 index 000000000..081be76bf --- /dev/null +++ b/libjava/java/util/jar/JarFile.h @@ -0,0 +1,103 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarFile__ +#define __java_util_jar_JarFile__ + +#pragma interface + +#include <java/util/zip/ZipFile.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace pkcs + { + class SignerInfo; + } + namespace provider + { + class Gnu; + } + } + } + } + namespace java + { + namespace security + { + namespace cert + { + class Certificate; + } + } + } +} + +class java::util::jar::JarFile : public ::java::util::zip::ZipFile +{ + +public: // actually package-private + static void debug(::java::lang::Object *); +public: + JarFile(::java::lang::String *); + JarFile(::java::lang::String *, jboolean); + JarFile(::java::io::File *); + JarFile(::java::io::File *, jboolean); + JarFile(::java::io::File *, jboolean, jint); +private: + void verify(); + ::java::util::jar::Manifest * readManifest(); +public: + virtual ::java::util::Enumeration * entries(); + virtual ::java::util::zip::ZipEntry * getEntry(::java::lang::String *); + virtual ::java::io::InputStream * getInputStream(::java::util::zip::ZipEntry *); + virtual ::java::util::jar::JarEntry * getJarEntry(::java::lang::String *); + virtual ::java::util::jar::Manifest * getManifest(); +public: // actually package-private + virtual void readSignatures(); +private: + void verify(JArray< ::java::security::cert::Certificate * > *, ::gnu::java::security::pkcs::SignerInfo *, ::java::lang::String *, ::java::util::Set *); + jboolean verifyHashes(::java::lang::String *, ::java::util::jar::Attributes *, ::java::util::HashMap *); +public: + static ::java::lang::String * MANIFEST_NAME; +private: + static ::java::lang::String * META_INF; + static ::java::lang::String * PKCS7_DSA_SUFFIX; + static ::java::lang::String * PKCS7_RSA_SUFFIX; + static ::java::lang::String * DIGEST_KEY_SUFFIX; + static ::java::lang::String * SF_SUFFIX; +public: // actually package-private + static ::gnu::java::security::provider::Gnu * provider; +private: + static ::gnu::java::security::OID * MD2_OID; + static ::gnu::java::security::OID * MD4_OID; + static ::gnu::java::security::OID * MD5_OID; + static ::gnu::java::security::OID * SHA1_OID; + static ::gnu::java::security::OID * DSA_ENCRYPTION_OID; + static ::gnu::java::security::OID * RSA_ENCRYPTION_OID; + ::java::util::jar::Manifest * __attribute__((aligned(__alignof__( ::java::util::zip::ZipFile)))) manifest; +public: // actually package-private + jboolean verify__; +private: + jboolean manifestRead; +public: // actually package-private + jboolean signaturesRead; + ::java::util::HashMap * verified; + ::java::util::HashMap * entryCerts; +private: + ::java::util::HashMap * digestAlgorithms; +public: // actually package-private + static jboolean DEBUG; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarFile__ diff --git a/libjava/java/util/jar/JarInputStream.h b/libjava/java/util/jar/JarInputStream.h new file mode 100644 index 000000000..7e4441d7e --- /dev/null +++ b/libjava/java/util/jar/JarInputStream.h @@ -0,0 +1,35 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarInputStream__ +#define __java_util_jar_JarInputStream__ + +#pragma interface + +#include <java/util/zip/ZipInputStream.h> +#include <gcj/array.h> + + +class java::util::jar::JarInputStream : public ::java::util::zip::ZipInputStream +{ + +public: + JarInputStream(::java::io::InputStream *); + JarInputStream(::java::io::InputStream *, jboolean); +private: + void readManifest(jboolean); +public: // actually protected + virtual ::java::util::zip::ZipEntry * createZipEntry(::java::lang::String *); +public: + virtual ::java::util::jar::Manifest * getManifest(); + virtual ::java::util::zip::ZipEntry * getNextEntry(); + virtual ::java::util::jar::JarEntry * getNextJarEntry(); + virtual jint read(JArray< jbyte > *, jint, jint); +private: + ::java::util::jar::Manifest * __attribute__((aligned(__alignof__( ::java::util::zip::ZipInputStream)))) manifest; + ::java::util::jar::JarEntry * firstEntry; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarInputStream__ diff --git a/libjava/java/util/jar/JarOutputStream.h b/libjava/java/util/jar/JarOutputStream.h new file mode 100644 index 000000000..184f307c5 --- /dev/null +++ b/libjava/java/util/jar/JarOutputStream.h @@ -0,0 +1,24 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_JarOutputStream__ +#define __java_util_jar_JarOutputStream__ + +#pragma interface + +#include <java/util/zip/ZipOutputStream.h> + +class java::util::jar::JarOutputStream : public ::java::util::zip::ZipOutputStream +{ + +public: + JarOutputStream(::java::io::OutputStream *); + JarOutputStream(::java::io::OutputStream *, ::java::util::jar::Manifest *); +private: + void writeManifest(::java::util::jar::Manifest *); +public: + virtual void putNextEntry(::java::util::zip::ZipEntry *); + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_JarOutputStream__ diff --git a/libjava/java/util/jar/Manifest.h b/libjava/java/util/jar/Manifest.h new file mode 100644 index 000000000..b0f2e9932 --- /dev/null +++ b/libjava/java/util/jar/Manifest.h @@ -0,0 +1,34 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_jar_Manifest__ +#define __java_util_jar_Manifest__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::jar::Manifest : public ::java::lang::Object +{ + +public: + Manifest(); + Manifest(::java::io::InputStream *); + Manifest(::java::util::jar::Manifest *); + virtual ::java::util::jar::Attributes * getMainAttributes(); + virtual ::java::util::Map * getEntries(); + virtual ::java::util::jar::Attributes * getAttributes(::java::lang::String *); + virtual void clear(); + virtual void read(::java::io::InputStream *); + virtual void write(::java::io::OutputStream *); + virtual ::java::lang::Object * clone(); + virtual jboolean equals(::java::lang::Object *); + virtual jint hashCode(); +private: + ::java::util::jar::Attributes * __attribute__((aligned(__alignof__( ::java::lang::Object)))) mainAttr; + ::java::util::Map * entries; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_jar_Manifest__ |