Examples of createNewFile()


Examples of org.jruby.util.JRubyFile.createNewFile()

            if (flags.isCreate()) {
                if (theFile.exists() && flags.isExclusive()) {
                    throw new FileExistsException(path);
                }
                fileCreated = theFile.createNewFile();
            } else {
                if (!theFile.exists()) {
                    throw new FileNotFoundException(path);
                }
            }
View Full Code Here

Examples of org.maqetta.server.IStorage.createNewFile()

        IStorage settingsFile = settingsDir.newInstance(settingsDir, id + IDavinciServerConstants.SETTINGS_EXTENSION);
       
        if(! user.isValid(settingsFile.getAbsolutePath()) ) return;
       
        if (!settingsFile.exists()) {
            settingsFile.createNewFile();
        }
        OutputStream os = new BufferedOutputStream(settingsFile.getOutputStream());
        Command.transferStreams(req.getInputStream(), os, false);
    }
View Full Code Here

Examples of org.netbeans.modules.php.fuel.modules.FuelPhpModule.createNewFile()

        }

        // create a file
        if (baseDirectory != null) {
            path = path.concat(".php"); // NOI18N
            boolean isCreated = fuelModule.createNewFile(baseDirectory, path);
            if (isCreated) {
                return baseDirectory.getFileObject(path);
            }
        }
        return null;
View Full Code Here

Examples of org.syncany.tests.util.TestClient.createNewFile()

        }
            ));

    TestClient clientA = new TestClient("A", testConnection);

    clientA.createNewFile("A-original", 5 * 1024 * 1024); // << larger than one multichunk!

    boolean firstUpFailed = false;

    try {
      clientA.up();
View Full Code Here

Examples of org.voltdb.utils.VoltFile.createNewFile()

        }
        return new Runnable() {
            @Override
            public void run() {
                try {
                    f.createNewFile();
                } catch (IOException e) {
                    throw new RuntimeException("Failed to create .complete file for " + f.getName(), e);
                }
            }
        };
View Full Code Here

Examples of railo.commons.io.res.Resource.createNewFile()

  private static void loadId(ConfigImpl config) {
    Resource res = config.getConfigDir().getRealResource("id");
    String securityKey = null;
    try {
      if (!res.exists()) {
        res.createNewFile();
        IOUtil.write(res, securityKey = UUIDGenerator.getInstance().generateRandomBasedUUID().toString(), SystemUtil.getCharset(), false);
      }
      else {
        securityKey = IOUtil.toString(res, SystemUtil.getCharset());
      }
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.