Package org.eclipse.core.filesystem

Examples of org.eclipse.core.filesystem.IFileStore.openOutputStream()


        }

        Properties props = new Properties();
        OutputStream os = null;
        try {
            os = fileStore.openOutputStream(EFS.NONE, null);

            int pid = getPid();
            int port = getPort();
            String mainClass = getMainClass();
View Full Code Here


            throws InvocationTargetException, InterruptedException {
          IFileStore store = EFS.getLocalFileSystem().getStore(
              location);
          BufferedOutputStream out = null;
          try {
            out = new BufferedOutputStream(store.openOutputStream(
                0, monitor));
            out.write(newContent);
          } catch (CoreException e) {
            throw new InvocationTargetException(e);
          } catch (IOException e) {
View Full Code Here

    });
  }

  IFileStore getTempFileStore(String fromUsername, String fileName, String content) throws IOException, CoreException {
    final IFileStore fileStore = EFS.getLocalFileSystem().fromLocalFile(File.createTempFile(fromUsername, fileName));
    final OutputStream outs = fileStore.openOutputStream(EFS.OVERWRITE, null);
    outs.write(content.getBytes());
    outs.close();
    return fileStore;
  }
View Full Code Here

    try {
      // Get/open input file
      setInputStream(new BufferedInputStream(new FileInputStream(getFileTransferInfo().getFile())));
      // Open target
      final IFileStore fileStore = EFS.getStore(new URI(getRemoteFileURL().getPath()));
      setOutputStream(fileStore.openOutputStream(0, null));
    } catch (final Exception e) {
      throw new SendFileTransferException(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.