00001 #ifndef xmogInc_javaioOutputStream
00002 #define xmogInc_javaioOutputStream
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 OutputStream;
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
00049 class JMS_DECLSPEC java::io::OutputStream :
00050 public virtual ::java::lang::Object
00051 {
00052 public:
00053 enum
00054 {
00055 xmogDefaultFlags = xmog_base::GLOBAL,
00056 xmogMajorVersion = 3,
00057 xmogMinorVersion = 2,
00058 xmogPatchVersion = 9,
00059 xmogBuildNumber = 2047
00060 };
00061
00062 public:
00063
00064 typedef ::xmog_java_array_template< ::java::io::OutputStream > array1D;
00065
00066 typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::io::OutputStream > > array2D;
00067
00069
00086 OutputStream( );
00087
00100 OutputStream( const ::java::io::OutputStream & _rhs );
00101
00114 OutputStream( jobject _local, xmog_flags f_xflags );
00115
00128 OutputStream( const ::xmog_null & _null_instance );
00129
00140 OutputStream( ::xmog_java_array * _arr, jint _index );
00141
00155 OutputStream( const ::java::io::OutputStream & _rhs, ::xmog_localenv * p_lxenv );
00156
00168 XMOG_EXPLICIT OutputStream( ::xmog_base * _delegate, bool _owns_delegate = true );
00169
00183 OutputStream( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00184
00186
00196 OutputStream( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00197
00199
00206 ~OutputStream( );
00207
00220 java::io::OutputStream operator =( const java::io::OutputStream & _rhs );
00221
00236 void operator delete( void * _ptr );
00237
00238 # if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00254 void operator delete( void * ptr, void * loc );
00255 # endif
00256
00271 void * operator new( size_t _size );
00272
00273 # if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00291 void * operator new( size_t _size, void * _ptr );
00292 # endif
00293
00295
00313 virtual void close( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00314
00316
00337 static ::java::io::OutputStream dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00338
00340
00360 virtual void flush( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00361
00363
00377 static ::xmog_java_class * get_class( );
00378
00387 static ::xmog_java_class * get_element_class( );
00388
00390
00411 virtual void write( jint b, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00412
00429 virtual void write( const ::xmog_java_byte_array & b, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00430
00464 virtual void write( const ::xmog_java_byte_array & b, jint off, jint len, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00465
00467
00486 virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00488
00489 };
00490 #endif
00491