org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(183)

本文整理了Java中org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent()方法的一些代码示例,展示了Util.getFileByteContent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getFileByteContent()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.util.Util
类名称:Util
方法名:getFileByteContent

Util.getFileByteContent介绍

[英]Returns the contents of the given file as a byte array.
[中]以字节数组的形式返回给定文件的内容。

代码示例

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

/**
 * @see javax.tools.FileObject#getCharContent(boolean)
 */
@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

/**
 * @see javax.tools.FileObject#getCharContent(boolean)
 */
@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

/**
 * @see javax.tools.FileObject#getCharContent(boolean)
 */
@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * @see javax.tools.FileObject#getCharContent(boolean)
 */
@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.toString());
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: org.eclipse.jdt.compiler/apt

public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.name());
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
  return Util.getCharContents(this, ignoreEncodingErrors, org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(this.f), this.charset.toString());
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

public static ClassFileReader read(File file, boolean fullyInitialize) throws ClassFormatException, IOException {
  byte classFileBytes[] = Util.getFileByteContent(file);
  ClassFileReader classFileReader = new ClassFileReader(classFileBytes, file.getAbsolutePath().toCharArray());
  if (fullyInitialize) {
    classFileReader.initialize();
  }
  return classFileReader;
}

相关文章