下面列出了org.apache.commons.lang3.SystemUtils#FILE_SEPARATOR 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
@Nullable
protected String[] get(Event e) {
switch (ty) {
case 0:
return new String[]{SystemUtils.OS_ARCH};
case 1:
return new String[]{SystemUtils.OS_NAME};
case 2:
return new String[]{SystemUtils.OS_VERSION};
case 3:
return new String[]{SystemUtils.getJavaHome().toString()};
case 4:
return new String[]{SystemUtils.getUserDir().toString()};
case 5:
return new String[]{SystemUtils.getUserHome().toString()};
case 6:
return new String[]{SystemUtils.USER_NAME};
case 7:
return new String[]{SystemUtils.USER_LANGUAGE};
case 8:
return new String[]{SystemUtils.USER_TIMEZONE};
case 9:
return new String[]{SystemUtils.LINE_SEPARATOR};
case 10:
return new String[]{SystemUtils.FILE_SEPARATOR};
case 11:
return new String[]{SystemUtils.PATH_SEPARATOR};
case 12:
return new String[]{SystemUtils.FILE_ENCODING};
}
return null;
}
private String formNodeFilePath(File flowGraphDir, String groupDir, String fileName) {
return flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
private String formNodeFilePath(String groupDir, String fileName) {
return this.flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
private String formEdgeFilePath(String parentDir, String groupDir, String fileName) {
return this.flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + parentDir + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
private String formConfigFilePath(String groupDir, String fileName) {
return this.configDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}