Properties.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_PROPERTIES_H
00002 #define JAVA_IO_PROPERTIES_H 1
00003 
00004 #ifndef JAVA_IO_INPUTSTREAM_H
00005 #include <java_io/InputStream.h>
00006 #endif /* JAVA_IO_INPUTSTREAM_H */
00007 #ifndef JAVA_IO_OUTPUTSTREAM_H
00008 #include <java_io/OutputStream.h>
00009 #endif /* JAVA_IO_OUTPUTSTREAM_H */
00010 #ifndef JAVA_UTIL_SET_H
00011 #include <java_util/Set.h>
00012 #endif /* JAVA_UTIL_SET_H */
00013 
00014 namespace java {
00015   namespace io {
00016 
00017     using namespace java::util;
00018 
00055     class JAVA_IO_SPEC Properties : virtual public Object {
00056 
00057     public:
00058 
00064       Properties(const Ref<Properties>& defaults = 0);
00065 
00079       virtual Ref<String> setProperty(const Ref<String>& key, const Ref<String>& value);
00080 
00092       virtual Ref<String> getProperty(const Ref<String>& key, const Ref<String>& defaultValue = 0) const;
00093 
00105       virtual Ref<Set> propertyNames() const;
00106 
00258       virtual void load(const Ref<InputStream>& inStream);
00259 
00312       virtual void store(const Ref<OutputStream>& out, const String& header = nilCString) const;
00313 
00317       virtual String toString() const;
00318 
00319     private:
00320 
00321       ObjectRef impl;
00322       REGISTER_MEMBERS;
00323 
00324     };
00325 
00326   } // namespace io
00327 } // namespace java
00328 
00329 #endif /* JAVA_IO_PROPERTIES_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3