diff options
Diffstat (limited to 'libjava/java/util/prefs')
-rw-r--r-- | libjava/java/util/prefs/AbstractPreferences$1.h | 27 | ||||
-rw-r--r-- | libjava/java/util/prefs/AbstractPreferences$2.h | 28 | ||||
-rw-r--r-- | libjava/java/util/prefs/AbstractPreferences.h | 106 | ||||
-rw-r--r-- | libjava/java/util/prefs/BackingStoreException.h | 26 | ||||
-rw-r--r-- | libjava/java/util/prefs/InvalidPreferencesFormatException.h | 27 | ||||
-rw-r--r-- | libjava/java/util/prefs/NodeChangeEvent.h | 27 | ||||
-rw-r--r-- | libjava/java/util/prefs/NodeChangeListener.h | 20 | ||||
-rw-r--r-- | libjava/java/util/prefs/PreferenceChangeEvent.h | 29 | ||||
-rw-r--r-- | libjava/java/util/prefs/PreferenceChangeListener.h | 19 | ||||
-rw-r--r-- | libjava/java/util/prefs/Preferences$1.h | 22 | ||||
-rw-r--r-- | libjava/java/util/prefs/Preferences.h | 85 | ||||
-rw-r--r-- | libjava/java/util/prefs/PreferencesFactory.h | 20 |
12 files changed, 436 insertions, 0 deletions
diff --git a/libjava/java/util/prefs/AbstractPreferences$1.h b/libjava/java/util/prefs/AbstractPreferences$1.h new file mode 100644 index 000000000..8e3bb1221 --- /dev/null +++ b/libjava/java/util/prefs/AbstractPreferences$1.h @@ -0,0 +1,27 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_AbstractPreferences$1__ +#define __java_util_prefs_AbstractPreferences$1__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::AbstractPreferences$1 : public ::java::lang::Object +{ + +public: // actually package-private + AbstractPreferences$1(::java::util::prefs::AbstractPreferences *, ::java::util::prefs::PreferenceChangeListener *, ::java::util::prefs::PreferenceChangeEvent *); +public: + virtual void run(); +public: // actually package-private + ::java::util::prefs::AbstractPreferences * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +private: + ::java::util::prefs::PreferenceChangeListener * val$listener; + ::java::util::prefs::PreferenceChangeEvent * val$event; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_AbstractPreferences$1__ diff --git a/libjava/java/util/prefs/AbstractPreferences$2.h b/libjava/java/util/prefs/AbstractPreferences$2.h new file mode 100644 index 000000000..7729ccfdb --- /dev/null +++ b/libjava/java/util/prefs/AbstractPreferences$2.h @@ -0,0 +1,28 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_AbstractPreferences$2__ +#define __java_util_prefs_AbstractPreferences$2__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::AbstractPreferences$2 : public ::java::lang::Object +{ + +public: // actually package-private + AbstractPreferences$2(::java::util::prefs::AbstractPreferences *, jboolean, ::java::util::prefs::NodeChangeListener *, ::java::util::prefs::NodeChangeEvent *); +public: + virtual void run(); +public: // actually package-private + ::java::util::prefs::AbstractPreferences * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +private: + jboolean val$added; + ::java::util::prefs::NodeChangeListener * val$listener; + ::java::util::prefs::NodeChangeEvent * val$event; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_AbstractPreferences$2__ diff --git a/libjava/java/util/prefs/AbstractPreferences.h b/libjava/java/util/prefs/AbstractPreferences.h new file mode 100644 index 000000000..a4e3a028a --- /dev/null +++ b/libjava/java/util/prefs/AbstractPreferences.h @@ -0,0 +1,106 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_AbstractPreferences__ +#define __java_util_prefs_AbstractPreferences__ + +#pragma interface + +#include <java/util/prefs/Preferences.h> +#include <gcj/array.h> + + +class java::util::prefs::AbstractPreferences : public ::java::util::prefs::Preferences +{ + +public: // actually protected + AbstractPreferences(::java::util::prefs::AbstractPreferences *, ::java::lang::String *); +public: + virtual ::java::lang::String * absolutePath(); +private: + ::java::lang::String * path(); +public: + virtual jboolean isUserNode(); + virtual ::java::lang::String * name(); + virtual ::java::lang::String * toString(); +public: // actually protected + virtual JArray< ::java::util::prefs::AbstractPreferences * > * cachedChildren(); +public: + virtual JArray< ::java::lang::String * > * childrenNames(); + virtual ::java::util::prefs::Preferences * node(::java::lang::String *); +private: + ::java::util::prefs::Preferences * getNode(::java::lang::String *); +public: + virtual jboolean nodeExists(::java::lang::String *); +private: + jboolean existsNode(::java::lang::String *); +public: // actually protected + virtual ::java::util::prefs::AbstractPreferences * getChild(::java::lang::String *); + virtual jboolean isRemoved(); +public: + virtual ::java::util::prefs::Preferences * parent(); + virtual void exportNode(::java::io::OutputStream *); + virtual void exportSubtree(::java::io::OutputStream *); + virtual JArray< ::java::lang::String * > * keys(); + virtual ::java::lang::String * get(::java::lang::String *, ::java::lang::String *); + virtual jboolean getBoolean(::java::lang::String *, jboolean); + virtual JArray< jbyte > * getByteArray(::java::lang::String *, JArray< jbyte > *); +private: + static JArray< jbyte > * decode64(::java::lang::String *); +public: + virtual jdouble getDouble(::java::lang::String *, jdouble); + virtual jfloat getFloat(::java::lang::String *, jfloat); + virtual jint getInt(::java::lang::String *, jint); + virtual jlong getLong(::java::lang::String *, jlong); + virtual void put(::java::lang::String *, ::java::lang::String *); + virtual void putBoolean(::java::lang::String *, jboolean); + virtual void putByteArray(::java::lang::String *, JArray< jbyte > *); +private: + static ::java::lang::String * encode64(JArray< jbyte > *); +public: + virtual void putDouble(::java::lang::String *, jdouble); + virtual void putFloat(::java::lang::String *, jfloat); + virtual void putInt(::java::lang::String *, jint); + virtual void putLong(::java::lang::String *, jlong); + virtual void remove(::java::lang::String *); + virtual void clear(); + virtual void flush(); + virtual void sync(); +private: + void flushNode(jboolean); +public: + virtual void removeNode(); +private: + void purge(); +public: + virtual void addNodeChangeListener(::java::util::prefs::NodeChangeListener *); + virtual void addPreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *); + virtual void removeNodeChangeListener(::java::util::prefs::NodeChangeListener *); + virtual void removePreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *); +private: + void fire(::java::util::prefs::PreferenceChangeEvent *); + void fire(::java::util::prefs::NodeChangeEvent *, jboolean); +public: // actually protected + virtual JArray< ::java::lang::String * > * childrenNamesSpi() = 0; + virtual ::java::util::prefs::AbstractPreferences * childSpi(::java::lang::String *) = 0; + virtual JArray< ::java::lang::String * > * keysSpi() = 0; + virtual ::java::lang::String * getSpi(::java::lang::String *) = 0; + virtual void putSpi(::java::lang::String *, ::java::lang::String *) = 0; + virtual void removeSpi(::java::lang::String *) = 0; + virtual void flushSpi() = 0; + virtual void syncSpi() = 0; + virtual void removeNodeSpi() = 0; + ::java::lang::Object * __attribute__((aligned(__alignof__( ::java::util::prefs::Preferences)))) lock; + jboolean newNode; +private: + ::java::util::prefs::AbstractPreferences * parent__; + ::java::lang::String * name__; + jboolean removed; + ::java::util::HashMap * childCache; + ::java::util::ArrayList * nodeListeners; + ::java::util::ArrayList * preferenceListeners; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_AbstractPreferences__ diff --git a/libjava/java/util/prefs/BackingStoreException.h b/libjava/java/util/prefs/BackingStoreException.h new file mode 100644 index 000000000..a68513852 --- /dev/null +++ b/libjava/java/util/prefs/BackingStoreException.h @@ -0,0 +1,26 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_BackingStoreException__ +#define __java_util_prefs_BackingStoreException__ + +#pragma interface + +#include <java/lang/Exception.h> + +class java::util::prefs::BackingStoreException : public ::java::lang::Exception +{ + +public: + BackingStoreException(::java::lang::String *); + BackingStoreException(::java::lang::Throwable *); +private: + void writeObject(::java::io::ObjectOutputStream *); + void readObject(::java::io::ObjectInputStream *); +public: // actually package-private + static const jlong serialVersionUID = 859796500401108469LL; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_BackingStoreException__ diff --git a/libjava/java/util/prefs/InvalidPreferencesFormatException.h b/libjava/java/util/prefs/InvalidPreferencesFormatException.h new file mode 100644 index 000000000..dd81f5dc0 --- /dev/null +++ b/libjava/java/util/prefs/InvalidPreferencesFormatException.h @@ -0,0 +1,27 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_InvalidPreferencesFormatException__ +#define __java_util_prefs_InvalidPreferencesFormatException__ + +#pragma interface + +#include <java/lang/Exception.h> + +class java::util::prefs::InvalidPreferencesFormatException : public ::java::lang::Exception +{ + +public: + InvalidPreferencesFormatException(::java::lang::String *); + InvalidPreferencesFormatException(::java::lang::Throwable *); + InvalidPreferencesFormatException(::java::lang::String *, ::java::lang::Throwable *); +private: + void writeObject(::java::io::ObjectOutputStream *); + void readObject(::java::io::ObjectInputStream *); +public: // actually package-private + static const jlong serialVersionUID = -791715184232119669LL; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_InvalidPreferencesFormatException__ diff --git a/libjava/java/util/prefs/NodeChangeEvent.h b/libjava/java/util/prefs/NodeChangeEvent.h new file mode 100644 index 000000000..7a51b708b --- /dev/null +++ b/libjava/java/util/prefs/NodeChangeEvent.h @@ -0,0 +1,27 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_NodeChangeEvent__ +#define __java_util_prefs_NodeChangeEvent__ + +#pragma interface + +#include <java/util/EventObject.h> + +class java::util::prefs::NodeChangeEvent : public ::java::util::EventObject +{ + +public: + NodeChangeEvent(::java::util::prefs::Preferences *, ::java::util::prefs::Preferences *); + virtual ::java::util::prefs::Preferences * getParent(); + virtual ::java::util::prefs::Preferences * getChild(); +private: + void readObject(::java::io::ObjectInputStream *); + void writeObject(::java::io::ObjectOutputStream *); + static const jlong serialVersionUID = 8068949086596572957LL; + ::java::util::prefs::Preferences * __attribute__((aligned(__alignof__( ::java::util::EventObject)))) child; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_NodeChangeEvent__ diff --git a/libjava/java/util/prefs/NodeChangeListener.h b/libjava/java/util/prefs/NodeChangeListener.h new file mode 100644 index 000000000..2ad05d6e1 --- /dev/null +++ b/libjava/java/util/prefs/NodeChangeListener.h @@ -0,0 +1,20 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_NodeChangeListener__ +#define __java_util_prefs_NodeChangeListener__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::NodeChangeListener : public ::java::lang::Object +{ + +public: + virtual void childAdded(::java::util::prefs::NodeChangeEvent *) = 0; + virtual void childRemoved(::java::util::prefs::NodeChangeEvent *) = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __java_util_prefs_NodeChangeListener__ diff --git a/libjava/java/util/prefs/PreferenceChangeEvent.h b/libjava/java/util/prefs/PreferenceChangeEvent.h new file mode 100644 index 000000000..790a957d2 --- /dev/null +++ b/libjava/java/util/prefs/PreferenceChangeEvent.h @@ -0,0 +1,29 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_PreferenceChangeEvent__ +#define __java_util_prefs_PreferenceChangeEvent__ + +#pragma interface + +#include <java/util/EventObject.h> + +class java::util::prefs::PreferenceChangeEvent : public ::java::util::EventObject +{ + +public: + PreferenceChangeEvent(::java::util::prefs::Preferences *, ::java::lang::String *, ::java::lang::String *); + virtual ::java::util::prefs::Preferences * getNode(); + virtual ::java::lang::String * getKey(); + virtual ::java::lang::String * getNewValue(); +private: + void readObject(::java::io::ObjectInputStream *); + void writeObject(::java::io::ObjectOutputStream *); + static const jlong serialVersionUID = 793724513368024975LL; + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::util::EventObject)))) key; + ::java::lang::String * newValue; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_PreferenceChangeEvent__ diff --git a/libjava/java/util/prefs/PreferenceChangeListener.h b/libjava/java/util/prefs/PreferenceChangeListener.h new file mode 100644 index 000000000..d450a31b7 --- /dev/null +++ b/libjava/java/util/prefs/PreferenceChangeListener.h @@ -0,0 +1,19 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_PreferenceChangeListener__ +#define __java_util_prefs_PreferenceChangeListener__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::PreferenceChangeListener : public ::java::lang::Object +{ + +public: + virtual void preferenceChange(::java::util::prefs::PreferenceChangeEvent *) = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __java_util_prefs_PreferenceChangeListener__ diff --git a/libjava/java/util/prefs/Preferences$1.h b/libjava/java/util/prefs/Preferences$1.h new file mode 100644 index 000000000..1d61c4f1e --- /dev/null +++ b/libjava/java/util/prefs/Preferences$1.h @@ -0,0 +1,22 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_Preferences$1__ +#define __java_util_prefs_Preferences$1__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::Preferences$1 : public ::java::lang::Object +{ + +public: // actually package-private + Preferences$1(); +public: + virtual ::java::util::prefs::PreferencesFactory * Preferences$1$run(); + virtual ::java::lang::Object * run(); + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_Preferences$1__ diff --git a/libjava/java/util/prefs/Preferences.h b/libjava/java/util/prefs/Preferences.h new file mode 100644 index 000000000..b19a03445 --- /dev/null +++ b/libjava/java/util/prefs/Preferences.h @@ -0,0 +1,85 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_Preferences__ +#define __java_util_prefs_Preferences__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace security + { + class Permission; + } + } +} + +class java::util::prefs::Preferences : public ::java::lang::Object +{ + +public: // actually protected + Preferences(); +public: + static ::java::util::prefs::Preferences * systemRoot(); + static ::java::util::prefs::Preferences * userRoot(); +private: + static ::java::util::prefs::PreferencesFactory * getFactory(); +public: + static ::java::util::prefs::Preferences * systemNodeForPackage(::java::lang::Class *); + static ::java::util::prefs::Preferences * userNodeForPackage(::java::lang::Class *); +private: + static ::java::util::prefs::Preferences * nodeForPackage(::java::lang::Class *, ::java::util::prefs::Preferences *); +public: + static void importPreferences(::java::io::InputStream *); + virtual ::java::lang::String * absolutePath() = 0; + virtual jboolean isUserNode() = 0; + virtual ::java::lang::String * name() = 0; + virtual ::java::lang::String * toString() = 0; + virtual JArray< ::java::lang::String * > * childrenNames() = 0; + virtual ::java::util::prefs::Preferences * node(::java::lang::String *) = 0; + virtual jboolean nodeExists(::java::lang::String *) = 0; + virtual ::java::util::prefs::Preferences * parent() = 0; + virtual void exportNode(::java::io::OutputStream *) = 0; + virtual void exportSubtree(::java::io::OutputStream *) = 0; + virtual JArray< ::java::lang::String * > * keys() = 0; + virtual ::java::lang::String * get(::java::lang::String *, ::java::lang::String *) = 0; + virtual jboolean getBoolean(::java::lang::String *, jboolean) = 0; + virtual JArray< jbyte > * getByteArray(::java::lang::String *, JArray< jbyte > *) = 0; + virtual jdouble getDouble(::java::lang::String *, jdouble) = 0; + virtual jfloat getFloat(::java::lang::String *, jfloat) = 0; + virtual jint getInt(::java::lang::String *, jint) = 0; + virtual jlong getLong(::java::lang::String *, jlong) = 0; + virtual void put(::java::lang::String *, ::java::lang::String *) = 0; + virtual void putBoolean(::java::lang::String *, jboolean) = 0; + virtual void putByteArray(::java::lang::String *, JArray< jbyte > *) = 0; + virtual void putDouble(::java::lang::String *, jdouble) = 0; + virtual void putFloat(::java::lang::String *, jfloat) = 0; + virtual void putInt(::java::lang::String *, jint) = 0; + virtual void putLong(::java::lang::String *, jlong) = 0; + virtual void remove(::java::lang::String *) = 0; + virtual void clear() = 0; + virtual void flush() = 0; + virtual void sync() = 0; + virtual void removeNode() = 0; + virtual void addNodeChangeListener(::java::util::prefs::NodeChangeListener *) = 0; + virtual void addPreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *) = 0; + virtual void removeNodeChangeListener(::java::util::prefs::NodeChangeListener *) = 0; + virtual void removePreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *) = 0; +private: + static ::java::lang::String * defaultFactoryClass; + static ::java::security::Permission * prefsPermission; + static ::java::util::prefs::PreferencesFactory * factory; +public: + static const jint MAX_NAME_LENGTH = 80; + static const jint MAX_KEY_LENGTH = 80; + static const jint MAX_VALUE_LENGTH = 8192; + static ::java::lang::Class class$; +}; + +#endif // __java_util_prefs_Preferences__ diff --git a/libjava/java/util/prefs/PreferencesFactory.h b/libjava/java/util/prefs/PreferencesFactory.h new file mode 100644 index 000000000..40207d480 --- /dev/null +++ b/libjava/java/util/prefs/PreferencesFactory.h @@ -0,0 +1,20 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_prefs_PreferencesFactory__ +#define __java_util_prefs_PreferencesFactory__ + +#pragma interface + +#include <java/lang/Object.h> + +class java::util::prefs::PreferencesFactory : public ::java::lang::Object +{ + +public: + virtual ::java::util::prefs::Preferences * systemRoot() = 0; + virtual ::java::util::prefs::Preferences * userRoot() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __java_util_prefs_PreferencesFactory__ |