@Override
public void print() {
File dir = new File(Constants.TYPE_PATH);
if (!dir.exists()) {
dir.mkdir();
}
File file = new File(Constants.TYPE_PATH, "underlays.txt");
try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) {
Arrays.stream(lays).filter(Objects::nonNull).forEach((UnderlayType t) -> {
TypePrinter.print(t, writer);
});
writer.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
UnderlayTypeList.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:Quavo
作者:
评论列表
文章目录