本文整理了Java中com.intellij.openapi.util.io.FileUtil.loadTextAndClose()
方法的一些代码示例,展示了FileUtil.loadTextAndClose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.loadTextAndClose()
方法的具体详情如下:
包路径:com.intellij.openapi.util.io.FileUtil
类名称:FileUtil
方法名:loadTextAndClose
暂无
代码示例来源:origin: KronicDeth/intellij-elixir
@NotNull
@Override
public String getDemoText() {
InputStream demoTextInputStream = getClass().getResourceAsStream("/Color Settings Page Demo Text.ex");
String demoText;
try {
demoText = loadTextAndClose(demoTextInputStream);
} catch (IOException e) {
demoText = "";
}
return demoText;
}
代码示例来源:origin: JetBrains/Grammar-Kit
public String getDescription() {
try {
InputStream resourceAsStream = getClass().getResourceAsStream("/messages/attributeDescriptions/" + getName() + ".html");
return resourceAsStream == null? null : FileUtil.loadTextAndClose(resourceAsStream);
}
catch (IOException e) {
return null;
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
private PsiClass getPsiClassForTest() throws IOException {
String path =
getTestDataPath()
+ "implicitUsageProviders/endpointImplicitUsageProvider/"
+ getTestName(false)
+ ".java";
String classText = FileUtil.loadTextAndClose(new FileInputStream(path));
return myFixture.addClass(classText);
}
}
内容来源于网络,如有侵权,请联系作者删除!