List of usage examples for org.apache.commons.lang3 SystemUtils FILE_ENCODING
String FILE_ENCODING
To view the source code for org.apache.commons.lang3 SystemUtils FILE_ENCODING.
Click Source Link
The file.encoding System Property.
From source file:com.kuzumeji.platform.standard.SystemHelperTest.java
@Test public final void test() { assertThat(SystemUtils.FILE_ENCODING, is("UTF-8")); }
From source file:com.norconex.jefmon.instance.action.impl.JefLogLinesReader.java
private String[] readFileManagerLines() throws IOException { ILogManager logManager = jobStatus.getLogManager(); File file = ((FileLogManager) logManager).getLogFile(jobStatus.getSuiteId()); String[] lines;// w w w . jav a2s .c o m if (LinesReader.MODE_HEAD.equalsIgnoreCase(getReadMode())) { lines = FileUtil.head(file, SystemUtils.FILE_ENCODING, getLineQty(), true, new JobIdLinesFilter()); } else { lines = FileUtil.tail(file, SystemUtils.FILE_ENCODING, getLineQty(), true, new JobIdLinesFilter()); } if (LinesReader.STYLE_COMPACT.equalsIgnoreCase(getLineStye())) { for (int i = 0; i < lines.length; i++) { lines[i] = lines[i].replaceFirst(".*? \\d\\d:\\d\\d:\\d\\d (\\w+ - )", "$1"); } } return lines; }