/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */

#ifdef JCGO_SEPARATED
#define JCGO_116
#include "jcgortl.h"
#include "Main.h"
#endif

#ifdef JCGO_116

#ifdef CHKALL_gnu_java_nio_VMChannel
#include "jcgobchk.h"
#endif

JCGO_NOSEP_STATIC gnu_java_nio_VMChannel_State CFASTCALL
gnu_java_nio_VMChannel_State__this__L59mnd( gnu_java_nio_VMChannel_State
 This, gnu_java_nio_VMChannel this_0 )
{
 {
  ;
 }
 return This;
}

JCGO_NOSEP_FRWINL gnu_java_nio_VMChannel_State CFASTCALL
gnu_java_nio_VMChannel_State__new__L59mnd( gnu_java_nio_VMChannel
 this_0 )
{
 return gnu_java_nio_VMChannel_State__this__L59mnd(
  (gnu_java_nio_VMChannel_State)jcgo_newObject((jvtable)&gnu_java_nio_VMChannel_State_methods),
  this_0);
}

JCGO_NOSEP_FRWINL jboolean CFASTCALL
gnu_java_nio_VMChannel_State__isValid__( gnu_java_nio_VMChannel_State
 This )
{
 {
  return (jboolean)(JCGO_FIELD_NZACCESS(This, handle) != jnull);
 }
}

JCGO_NOSEP_FRWINL jboolean CFASTCALL
gnu_java_nio_VMChannel_State__isClosed__( gnu_java_nio_VMChannel_State
 This )
{
 {
  return (jboolean)JCGO_FIELD_NZACCESS(This, closed);
 }
}

JCGO_NOSEP_INLINE jint CFASTCALL
gnu_java_nio_VMChannel_State__getNativeFD__( gnu_java_nio_VMChannel_State
 This )
{
 {
  jObject jcgo_rcvrL1;
  return (jcgo_rcvrL1= (jObject)(gnu_java_nio_VMChannel_State__getHandle__(
   This)), JCGO_CALL_NZVFUNC((gnu_java_nio_VMChannel_Handle)jcgo_rcvrL1)->getNativeFD__(
   (gnu_java_nio_VMChannel_Handle)jcgo_rcvrL1));
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
gnu_java_nio_VMChannel_State__close__( gnu_java_nio_VMChannel_State
 This )
{
 {
  gnu_java_nio_VMChannel_Handle handle;
  handle= (gnu_java_nio_VMChannel_State__getHandle__(
   This));
  JCGO_FIELD_NZACCESS(This, handle)= (gnu_java_nio_VMChannel_Handle)jnull;
  JCGO_FIELD_NZACCESS(This, closed)= (jboolean)jtrue;
  (JCGO_CALL_NZVFUNC(handle)->close__(
   handle));
 }
}

JCGO_NOSEP_STATIC java_lang_String CFASTCALL
gnu_java_nio_VMChannel_State__toString__( gnu_java_nio_VMChannel_State
 This )
{
 {
  gnu_java_nio_VMChannel_Handle handle;
  if (JCGO_FIELD_NZACCESS(This, closed))
  {
   return JCGO_STRREF_OF(jcgo_string2_State);
  }
  handle= JCGO_FIELD_NZACCESS(This, handle);
  if (handle != jnull)
  {
   {
    JCGO_TRY_BLOCK
    {
     {
      java_lang_String jcgo_retval= (java_lang_String__valueOf__I(
       (JCGO_CALL_NZVFUNC(handle)->getNativeFD__(
       handle))));
#ifndef JCGO_SEHTRY
      jcgo_tryLeave();
#endif
      return jcgo_retval;
     }
    }
    JCGO_TRY_LEAVE
    JCGO_TRY_CATCHES(1)
    JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
    {
    }
    JCGO_TRY_RETHROW(1)
   }
  }
  return JCGO_STRREF_OF(jcgo_string3_State);
 }
}

JCGO_NOSEP_STATIC gnu_java_nio_VMChannel_Handle CFASTCALL
gnu_java_nio_VMChannel_State__getHandle__( gnu_java_nio_VMChannel_State
 This )
{
 {
  gnu_java_nio_VMChannel_Handle handle;
  handle= JCGO_FIELD_NZACCESS(This, handle);
  if (handle == jnull)
  {
   JCGO_THROW_EXC((java_io_IOException__new__Ls(
    JCGO_STRREF_OF(jcgo_string4_State))));
  }
  return handle;
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
gnu_java_nio_VMChannel_State__setNativeFileFD__II( gnu_java_nio_VMChannel_State
 This, jint fd, jint mode )
{
 {
  gnu_java_nio_VMChannel_FileHandle JCGO_TRY_VOLATILE handle;
  (gnu_java_nio_VMChannel_State__checkUnset__(
   This));
  {
   JCGO_TRY_BLOCK
   {
    handle= (gnu_java_nio_VMChannel_FileHandle__new__I(
     mode));
   }
   JCGO_TRY_LEAVE
   JCGO_TRY_CATCHES(1)
   JCGO_TRY_CATCH(OBJT_java_lang_OutOfMemoryError, MAXT_java_lang_OutOfMemoryError)
   {
    java_lang_OutOfMemoryError e;
    e= (java_lang_OutOfMemoryError)JCGO_TRY_THROWABLE(0);
    {
     JCGO_TRY_BLOCK
     {
      (gnu_java_nio_VMChannel__close__I(
       fd));
     }
     JCGO_TRY_LEAVE
     JCGO_TRY_CATCHES(2)
     JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
     {
     }
     JCGO_TRY_RETHROW(2)
    }
    JCGO_THROW_EXC(e);
   }
   JCGO_TRY_RETHROW(1)
  }
  (JCGO_CALL_FINALF(handle) gnu_java_nio_VMChannel_FileHandle__setNativeFD__I(
   handle, fd));
  JCGO_FIELD_NZACCESS(This, handle)= (gnu_java_nio_VMChannel_Handle)handle;
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
gnu_java_nio_VMChannel_State__setNativeSocketFD__IZ( gnu_java_nio_VMChannel_State
 This, jint fd, jboolean stream )
{
 {
  gnu_java_nio_VMChannel_SocketHandle JCGO_TRY_VOLATILE handle;
  (gnu_java_nio_VMChannel_State__checkUnset__(
   This));
  {
   JCGO_TRY_BLOCK
   {
    handle= (gnu_java_nio_VMChannel_SocketHandle__new__Z(
     (jboolean)stream));
   }
   JCGO_TRY_LEAVE
   JCGO_TRY_CATCHES(1)
   JCGO_TRY_CATCH(OBJT_java_lang_OutOfMemoryError, MAXT_java_lang_OutOfMemoryError)
   {
    java_lang_OutOfMemoryError e;
    e= (java_lang_OutOfMemoryError)JCGO_TRY_THROWABLE(0);
    if (fd != (-(jint)1))
    {
     {
      JCGO_TRY_BLOCK
      {
       (gnu_java_net_VMAccessorGnuJavaNet__socketCloseVMPlainSocketImpl__I(
        fd));
      }
      JCGO_TRY_LEAVE
      JCGO_TRY_CATCHES(2)
      JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
      {
      }
      JCGO_TRY_RETHROW(2)
     }
    }
    JCGO_THROW_EXC(e);
   }
   JCGO_TRY_RETHROW(1)
  }
  (JCGO_CALL_FINALF(handle) gnu_java_nio_VMChannel_SocketHandle__setNativeFD__I(
   handle, fd));
  JCGO_FIELD_NZACCESS(This, handle)= (gnu_java_nio_VMChannel_Handle)handle;
 }
}

JCGO_NOSEP_STATIC gnu_java_nio_VMChannel_SocketHandle CFASTCALL
gnu_java_nio_VMChannel_State__getSocketHandle__( gnu_java_nio_VMChannel_State
 This )
{
 {
  gnu_java_nio_VMChannel_Handle handle;
  handle= JCGO_FIELD_NZACCESS(This, handle);
  if (!jcgo_instanceOf0(OBJT_gnu_java_nio_VMChannel_SocketHandle, MAXT_gnu_java_nio_VMChannel_SocketHandle,
   (jObject)handle))
  {
   JCGO_THROW_EXC((java_io_IOException__new__Ls(
    handle != jnull? JCGO_STRREF_OF(jcgo_string5_State) : JCGO_STRREF_OF(jcgo_string4_State))));
  }
  return (gnu_java_nio_VMChannel_SocketHandle)handle;
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
gnu_java_nio_VMChannel_State__checkUnset__( gnu_java_nio_VMChannel_State
 This )
{
 {
  if (JCGO_FIELD_NZACCESS(This, handle) != jnull || JCGO_FIELD_NZACCESS(This,
   closed))
  {
   JCGO_THROW_EXC((java_io_IOException__new__Ls(
    JCGO_STRREF_OF(jcgo_string6_State))));
  }
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
gnu_java_nio_VMChannel_State__finalize__( gnu_java_nio_VMChannel_State
 This )
{
 {
  gnu_java_nio_VMChannel_Handle handle;
  handle= JCGO_FIELD_NZACCESS(This, handle);
  if (handle != jnull && (JCGO_CALL_NZVFUNC(handle)->needsCloseOnFinalize__(
   handle)))
  {
   (gnu_java_nio_VMChannel_State__close__(
    This));
  }
 }
}

JCGO_NOSEP_DATA CONST struct gnu_java_nio_VMChannel_State_methods_s
 gnu_java_nio_VMChannel_State_methods=
{
 JCGO_CLASSREF_OF(gnu_java_nio_VMChannel_State__class),
 JCGO_GCJDESCR_INIT(gnu_java_nio_VMChannel_State_s, handle)
 OBJT_gnu_java_nio_VMChannel_State,
 (JCGO_OBJSIZE_T)sizeof(struct gnu_java_nio_VMChannel_State_s),
 NULL,
 JCGO_CLINIT_INIT(0)
 0,
 java_lang_Object__equals__Lo,
 java_lang_Object__hashCode__,
 gnu_java_nio_VMChannel_State__toString__,
 gnu_java_nio_VMChannel_State__finalize__
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct gnu_java_nio_VMChannel_State_class_s
 gnu_java_nio_VMChannel_State__class JCGO_THRD_ATTRNONGC=
{
 {
  &java_lang_Class_methods,
  JCGO_MON_INIT
  JCGO_OBJREF_OF(*(java_lang_Object)&gnu_java_nio_VMChannel_State_methods),
  JCGO_STRREF_OF(jcgo_string1_State),
  JCGO_CLASSREF_OF(java_lang_Object__class),
  ((jObjectArr)JCGO_OBJREF_OF(jcgo_array3_Object)),
  0x11
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype90_GmCnnctn jcgo_array7_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 28,
 {
  (jbyte)(jchar)103/*'g'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)117/*'u'*/,
   (jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)118/*'v'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)46/*'.'*/,
   (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)111/*'o'*/,
   (jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)86/*'V'*/, (jbyte)(jchar)77/*'M'*/,
   (jbyte)(jchar)67/*'C'*/, (jbyte)(jchar)104/*'h'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)101/*'e'*/,
   (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)36/*'$'*/, (jbyte)(jchar)83/*'S'*/,
   (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)116/*'t'*/,
   (jbyte)(jchar)101/*'e'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype32_GameShll jcgo_array8_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 10,
 {
  (jbyte)(jchar)60/*'<'*/, (jbyte)(jchar)60/*'<'*/, (jbyte)(jchar)99/*'c'*/,
   (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)115/*'s'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)62/*'>'*/,
   (jbyte)(jchar)62/*'>'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype28_Object jcgo_array9_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 11,
 {
  (jbyte)(jchar)60/*'<'*/, (jbyte)(jchar)60/*'<'*/, (jbyte)(jchar)105/*'i'*/,
   (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)118/*'v'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)100/*'d'*/,
   (jbyte)(jchar)62/*'>'*/, (jbyte)(jchar)62/*'>'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype91_GmCnnctn jcgo_array10_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 23,
 {
  (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)118/*'v'*/,
   (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)105/*'i'*/,
   (jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)102/*'f'*/,
   (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)101/*'e'*/,
   (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)101/*'e'*/,
   (jbyte)(jchar)115/*'s'*/, (jbyte)(jchar)99/*'c'*/, (jbyte)(jchar)114/*'r'*/,
   (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)116/*'t'*/,
   (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)114/*'r'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype26_Object jcgo_array11_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 12,
 {
  (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)116/*'t'*/,
   (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)32/*' '*/,
   (jbyte)(jchar)115/*'s'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)99/*'c'*/,
   (jbyte)(jchar)107/*'k'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)116/*'t'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype88_GmCnnctn jcgo_array12_State=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 35,
 {
  (jbyte)(jchar)102/*'f'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)108/*'l'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)100/*'d'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)115/*'s'*/, (jbyte)(jchar)99/*'c'*/,
   (jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)112/*'p'*/,
   (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)114/*'r'*/,
   (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)108/*'l'*/,
   (jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)121/*'y'*/, (jbyte)(jchar)32/*' '*/,
   (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)105/*'i'*/,
   (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)122/*'z'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)100/*'d'*/
 }
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array7_State),
 0, 28, (jint)0xcda3e7f3L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array8_State),
 0, 10, (jint)0x4263c5acL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array9_State),
 0, 11, (jint)0xa76bc077L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string4_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array10_State),
 0, 23, (jint)0x70ab106aL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string5_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array11_State),
 0, 12, (jint)0xdaf53abfL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string6_State
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array12_State),
 0, 35, (jint)0x399633ffL
};

#ifdef CHKALL_gnu_java_nio_VMChannel
#include "jcgochke.h"
#endif

#endif
