Examples of contentsToByteArray()


Examples of com.intellij.openapi.vfs.VirtualFile.contentsToByteArray()

            Notifications.Bus.notify( createWarningNotification( message ) );
            return;
        }

        try {
            String script = new String( fileByPath.contentsToByteArray() );
            CallableScriptConfiguration callableScriptConfiguration = new CallableScriptConfiguration(
                    absoluteJavaScriptFileLocationPath,
                    script,
                    javascriptFunctionCall
            );
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFile.contentsToByteArray()

      throw new ExecutionException("Cannot find JsTestDriver configuration file " + myConfigFile.getAbsolutePath());
    }
    BasePaths dirBasePaths = new BasePaths(myConfigFile.getParentFile());
    final byte[] content;
    try {
      content = configVirtualFile.contentsToByteArray();
    }
    catch (IOException e) {
      throw new ExecutionException("Cannot read JsTestDriver configuration file " + configVirtualFile.getPath());
    }
    Reader reader = new InputStreamReader(new ByteArrayInputStream(content), Charset.defaultCharset());
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFile.contentsToByteArray()

  @Nullable
  public byte[] getBinaryContent() throws VcsException {
    final VirtualFile vFile = getVirtualFile();
    if (vFile == null) return null;
    try {
      return vFile.contentsToByteArray();
    }
    catch (IOException e) {
      throw new VcsException(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.