/**
* プラグインブラックリストの読み込み
*
* @param listener ExceptionListener
* @return プラグインブラックリスト
*/
private Set<String> getBlackList(ExceptionListener listener) {
Set<String> blackList = Collections.emptySet();
InputStream in = Launcher.class.getClassLoader().getResourceAsStream("logbook/plugin-black-list"); //$NON-NLS-1$
if (in != null) {
try (BufferedReader r = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) {
blackList = r.lines()
.filter(l -> l.length() >= 64)
.map(l -> l.substring(0, 64))
.collect(Collectors.toSet());
} catch (IOException e) {
listener.exceptionThrown(e);
}
}
return blackList;
}
Launcher.java 文件源码
java
阅读 49
收藏 0
点赞 0
评论 0
项目:logbook-kai
作者:
评论列表
文章目录