00001 #ifndef xmogInc_javaioInputStream
00002 #define xmogInc_javaioInputStream
00003
00004 # if !defined(JMS_DECLSPEC )
00005 # if defined(_MSC_VER)
00006 # pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 # endif
00008
00009
00010 # define JMS_DECLSPEC
00011 # endif
00012
00013 namespace java
00014 {
00015 namespace io
00016 {
00017 class InputStream;
00018 }
00019 }
00020
00021 # include "java_lang_Object.h"
00022
00023
00024 # if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00025 # if defined(new)
00026 # undef new
00027 # endif
00028 # if defined(delete)
00029 # undef delete
00030 # endif
00031 # endif
00032
00047 class JMS_DECLSPEC java::io::InputStream :
00048 public virtual ::java::lang::Object
00049 {
00050 public:
00051 enum
00052 {
00053 xmogDefaultFlags = xmog_base::GLOBAL,
00054 xmogMajorVersion = 3,
00055 xmogMinorVersion = 2,
00056 xmogPatchVersion = 9,
00057 xmogBuildNumber = 2047
00058 };
00059
00060 public:
00061
00062 typedef ::xmog_java_array_template< ::java::io::InputStream > array1D;
00063
00064 typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::io::InputStream > > array2D;
00065
00067
00084 InputStream( );
00085
00098 InputStream( const ::java::io::InputStream & _rhs );
00099
00112 InputStream( jobject _local, xmog_flags f_xflags );
00113
00126 InputStream( const ::xmog_null & _null_instance );
00127
00138 InputStream( ::xmog_java_array * _arr, jint _index );
00139
00153 InputStream( const ::java::io::InputStream & _rhs, ::xmog_localenv * p_lxenv );
00154
00166 XMOG_EXPLICIT InputStream( ::xmog_base * _delegate, bool _owns_delegate = true );
00167
00181 InputStream( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00182
00184
00194 InputStream( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00195
00197
00204 ~InputStream( );
00205
00218 java::io::InputStream operator =( const java::io::InputStream & _rhs );
00219
00234 void operator delete( void * _ptr );
00235
00236 # if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00252 void operator delete( void * ptr, void * loc );
00253 # endif
00254
00269 void * operator new( size_t _size );
00270
00271 # if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00289 void * operator new( size_t _size, void * _ptr );
00290 # endif
00291
00293
00315 virtual jint available( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00316
00333 virtual void close( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00334
00336
00357 static ::java::io::InputStream dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00358
00372 static ::xmog_java_class * get_class( );
00373
00382 static ::xmog_java_class * get_element_class( );
00383
00385
00417 virtual void mark( jint readlimit, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00418
00436 virtual bool markSupported( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00437
00458 virtual jint read( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00459
00501 virtual jint read( const ::xmog_java_byte_array & b, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00502
00569 virtual jint read( const ::xmog_java_byte_array & b, jint off, jint len, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00570
00620 virtual void reset( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00621
00646 virtual jlong skip( jlong n, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00647
00649
00668 virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00670
00671 };
00672 #endif
00673