Examples of createFile()


Examples of br.com.experian.pbd.plugin.file.FileCreator.createFile()

    FileCreator fileCreator =
        PBDFileCreator.builder(project.getName(), outputDirectory.getAbsolutePath());

    getLog().info("Creating file..");

    fileCreator.createFile(classNames);

    getLog().info("Creating file finished");

  }
View Full Code Here

Examples of com.intellij.lang.ParserDefinition.createFile()

    if (parserDefinition == null) {
      return null;
    }

    if (lang == getTemplateDataLanguage()) {
      PsiFileImpl file = (PsiFileImpl)parserDefinition.createFile(this);
      file.setContentElementType(TEMPLATE_DATA_ELEMENT_TYPE);
      return file;
    }
    else if (lang == HbLanguage.INSTANCE) {
      return parserDefinition.createFile(this);
View Full Code Here

Examples of com.intellij.lang.ParserDefinition.createFile()

      PsiFileImpl file = (PsiFileImpl)parserDefinition.createFile(this);
      file.setContentElementType(TEMPLATE_DATA_ELEMENT_TYPE);
      return file;
    }
    else if (lang == HbLanguage.INSTANCE) {
      return parserDefinition.createFile(this);
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.createFile()

                {
                    String className = jsClass.getName() + "Mediator.as";
                    PsiDirectory directory = jsFile.getContainingDirectory();

                    //This works, but throws "Assertion failed: Write access is allowed inside write-action only (see com.intellij.openapi.application.Application.runWriteAction()) "?
                    PsiFile file = directory.createFile(className);
                    //TODO: How do a I create a psi from scratch? Or should I just use a template?
                }
                else
                {
                    //Can I hide the action from the menu instead of showing the message?
View Full Code Here

Examples of com.mongodb.gridfs.GridFS.createFile()

        // + originalFilename);
        //
        // file.transferTo(dest);

        GridFS gridFs = new GridFS(mongoTemplate.getDb(), folder);
        GridFSInputFile gfsFile = gridFs.createFile(file.getFileItem()
            .getInputStream());

        gfsFile.setFilename(originalFilename);
        gfsFile.save();
View Full Code Here

Examples of com.streamreduce.util.WebHDFSClient.createFile()

    }

    private void sendPayloadToWebHDFS(String filepath, byte[] payloadthrows IOException {
        WebHDFSClient webHDFSClient = new WebHDFSClient(outboundConfiguration);
        createDestinationDirectory(webHDFSClient, filepath.substring(0,filepath.lastIndexOf("/")));
        webHDFSClient.createFile(filepath, payload);
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Message sent to WebHDFS destination at path: " + filepath);
        }
    }
}
View Full Code Here

Examples of com.sun.jna.examples.win32.Kernel32.CreateFile()

            Kernel32 klib = Kernel32.INSTANCE;
            int mask = Kernel32.FILE_SHARE_READ
                | Kernel32.FILE_SHARE_WRITE | Kernel32.FILE_SHARE_DELETE;
            int flags = Kernel32.FILE_FLAG_BACKUP_SEMANTICS
                | Kernel32.FILE_FLAG_OVERLAPPED;
            HANDLE handle = klib.CreateFile(file.getAbsolutePath(),
                                            Kernel32.FILE_LIST_DIRECTORY,
                                            mask, null, Kernel32.OPEN_EXISTING,
                                            flags, null);
            if (Kernel32.INVALID_HANDLE_VALUE.equals(handle)) {
                throw new IOException("Unable to open " + file + " ("
View Full Code Here

Examples of com.trilead.ssh2.SFTPv3Client.createFile()

  public boolean createFile(String fileDirectory) throws IOException {
    boolean success = true;
    SFTPv3Client sftpConn = null;
    try {
      sftpConn = new SFTPv3Client(conn);
      sftpConn.createFile(fileDirectory);
    } catch (IOException e) {
      success = false;
      throw new IOException();
    } finally {
      if (sftpConn != null)
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler.createFile()

    if (!fileDirectory.endsWith("/")) {
      fileDirectory += "/";
    }

    fileDirectory += fileName;
    if (!handler.createFile(fileDirectory))
      return null;
    return fileDirectory;
  }

  /**
 
View Full Code Here

Examples of net.sourceforge.javautil.common.io.IVirtualDirectory.createFile()

      pom.setArtifactId(reference.getArtifactId());
      pom.setVersionString(reference.getVersion().toVersionString());
      pom.setPackaging(packaging);
     
      try {
        pom.write(packageDir.createFile(prefix + ".pom").getOutputStream());
        file.copy( packageDir.createFile(jarPrefix + "." + packaging) );
       
        this.clearCachedInformation(reference);
      } catch (JAXBException e) {
        throw ThrowableManagerRegistry.caught(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.