java.io.ObjectInputStream.readBoolean C# (CSharp) Méthode

readBoolean() private méthode

private readBoolean ( ) : bool
Résultat bool
        public virtual bool readBoolean()
        {
            global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 10)){
            return ((bool)(@__env.CallBooleanMethod(this, global::java.io.ObjectInputStream.j4n_readBoolean10)));
            }
        }

Usage Example

 public static Paint readPaint(ObjectInputStream stream)
 {
   if (stream == null)
   {
     string str = "Null 'stream' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     object obj1 = (object) null;
     if (!stream.readBoolean())
     {
       Class c = (Class) stream.readObject();
       if (SerialUtilities.isSerializable(c))
         obj1 = (object) (Paint) stream.readObject();
       else if (Object.instancehelper_equals((object) c, SerialUtilities.class\u0024java\u0024awt\u0024GradientPaint != null ? (object) SerialUtilities.class\u0024java\u0024awt\u0024GradientPaint : (object) (SerialUtilities.class\u0024java\u0024awt\u0024GradientPaint = SerialUtilities.class\u0024("java.awt.GradientPaint"))))
         obj1 = (object) new GradientPaint(stream.readFloat(), stream.readFloat(), (Color) stream.readObject(), stream.readFloat(), stream.readFloat(), (Color) stream.readObject(), stream.readBoolean());
     }
     object obj2 = obj1;
     if (obj2 == null)
       return (Paint) null;
     Paint paint = obj2 as Paint;
     if (paint != null)
       return paint;
     else
       throw new IncompatibleClassChangeError();
   }
 }
All Usage Examples Of java.io.ObjectInputStream::readBoolean