System.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_SYSTEM_H
00002 #define JAVA_IO_SYSTEM_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_PRINTSTREAM_H
00008 #include <java_io/PrintStream.h>
00009 #endif /* JAVA_IO_PRINTSTREAM_H */
00010 #ifndef JAVA_IO_PROPERTIES_H
00011 #include <java_io/Properties.h>
00012 #endif /* JAVA_IO_PROPERTIES_H */
00013 
00014 namespace java {
00015   namespace io {
00016 
00017     using namespace java::util;
00018 
00019     typedef jint(*EntryProc)(const Array<String>&);
00020 
00035     class JAVA_IO_SPEC System : virtual public Object {
00036 
00037     public:
00038 
00045       static Ref<InputStream> in;
00046 
00061       static Ref<PrintStream> out;
00062 
00075       static Ref<PrintStream> err;
00076 
00089       static jlong currentTimeMillis();
00090 
00102       static jint indentityHashCode(const Object& x);
00103 
00194       static Ref<Properties> getProperties();
00195 
00218       static void setProperties(const Ref<Properties>& props);
00219 
00246       static Ref<String> getProperty(const Ref<String>& key, const Ref<String>& defaultValue = 0);
00247 
00277       static Ref<String> setProperty(const Ref<String>& key, const Ref<String>& value);
00278 
00299       static void exit(jint status);
00300 
00304       static EntryProc setEntryProc(EntryProc proc);
00305 
00325       static void loadLibrary(const String& libname);
00326 
00327     private:
00328 
00330       System();
00331 
00352       static Ref<Properties> props;
00353 
00354       REGISTER_MEMBERS;
00355 
00356     };
00357 
00358   } // namespace io
00359 } // namespace java
00360 
00361 using namespace java::io;
00362 
00363 #endif /* JAVA_IO_SYSTEM_H */

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