Examples of valid()


Examples of java.io.FileDescriptor.valid()

     * <code>RandomAccessFile</code>.
     */
    public void flush() throws IOException {
  // Fix: 4636212.  When this FIleDescriptor is not valid, do nothing.
  FileDescriptor fd = file.getFD();
        if(fd.valid())
      fd.sync();
    }

    public void close() throws IOException {
        file.close();
View Full Code Here

Examples of java.io.FileDescriptor.valid()

    LOG.info("Test creating a file with O_CREAT");
    FileDescriptor fd = NativeIO.POSIX.open(
      new File(TEST_DIR, "testWorkingOpen").getAbsolutePath(),
      NativeIO.POSIX.O_WRONLY | NativeIO.POSIX.O_CREAT, 0700);
    assertNotNull(true);
    assertTrue(fd.valid());
    FileOutputStream fos = new FileOutputStream(fd);
    fos.write("foo".getBytes());
    fos.close();

    assertFalse(fd.valid());
View Full Code Here

Examples of net.csdn.mongo.Document.valid()

                        Collection objs = (Collection) obj;
                        Iterator iterator = objs.iterator();
                        while (iterator.hasNext()) {
                            Document member = (Document) iterator.next();
                            if (member == null) continue;
                            if (!member.valid()) {
                                validateResultList.addAll(member.validateResults);
                            }

                        }
                    } else/*单个对象*/ {
View Full Code Here

Examples of net.csdn.mongo.Document.valid()

                        }
                    } else/*单个对象*/ {
                        Document member = (Document) obj;
                        if (member == null) continue;
                        if (!member.valid()) {
                            validateResultList.addAll(member.validateResults);
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.jcs.utils.servlet.session.MetaHttpSession.valid()

     * @return The session value
     */
    public MetaHttpSession getSession( boolean create, HttpServletRequest req, HttpServletResponse res )
    {
        MetaHttpSession ses = getDistSession( req );
        return !ses.valid() && create ? createDistSession( req, res ) : ses;
    }


    /** Description of the Method */
    private MetaHttpSession createDistSession( HttpServletRequest req, HttpServletResponse res )
View Full Code Here

Examples of org.apache.stratum.jcs.utils.servlet.session.MetaHttpSession.valid()

     * @return The session value
     */
    public MetaHttpSession getSession( boolean create, HttpServletRequest req, HttpServletResponse res )
    {
        MetaHttpSession ses = getDistSession( req );
        return !ses.valid() && create ? createDistSession( req, res ) : ses;
    }


    /** Description of the Method */
    private MetaHttpSession createDistSession( HttpServletRequest req, HttpServletResponse res )
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.valid()

        onError(target, null);
      }
      else
      {
        formComponent.valid();
        formComponent.updateModel();
        onUpdate(target);
      }
    }
    catch (RuntimeException e)
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.valid()

        onError(target, null);
      }
      else
      {
        formComponent.valid();
        if (getUpdateModel())
        {
          formComponent.updateModel();
        }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.valid()

        onError(target, null);
      }
      else
      {
        formComponent.valid();
        formComponent.updateModel();
        onUpdate(target);
      }
    }
    catch (RuntimeException e)
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.valid()

       
        onError(target, null);
      }
      else
      {
        formComponent.valid();
        formComponent.updateModel();
        onUpdate(target);
      }
    }
    catch (RuntimeException e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.