Package kieker.common.util.filesystem
Class FSUtil
java.lang.Object
kieker.common.util.filesystem.FSUtil
public final class FSUtil
extends java.lang.Object
- Since:
- 1.7
- Author:
- Jan Waller
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBINARY_FILE_EXTENSIONThe extension of Kieker's binary record files.static java.lang.StringBZIP2_FILE_EXTENSIONThe extension of Kieker's bzip2ed record files.static java.lang.StringDAT_FILE_EXTENSIONThe usual extension of Kieker's record files.static java.lang.StringDEFLATE_FILE_EXTENSIONThe extension of Kieker's defalted record files.static java.lang.StringENCODINGThe encoding usually used within Kieker.static java.lang.StringFILE_PREFIXThe prefix of Kieker's record files.static java.lang.StringGZIP_FILE_EXTENSIONThe extension of Kieker's gzipped record files.static java.lang.StringLEGACY_FILE_PREFIXThe old prefix of Kieker's record files.static java.lang.StringLEGACY_MAP_FILENAMEThe old name of Kieker's map files.static java.lang.StringMAP_FILE_EXTENSIONThe extension of Kieker's mapping files.static java.lang.StringMAP_FILENAMEThe name of Kieker's map files.static java.lang.StringXZ_FILE_EXTENSIONThe extension of Kieker's xz record files.static java.lang.StringZIP_FILE_EXTENSIONThe extension of Kieker's zipped record files. -
Method Summary
Modifier and Type Method Description static java.lang.StringdecodeNewline(java.lang.String str)Decodes the given line (replaces\\\\with\\,\\rwith\rand\\nwith\n).static java.lang.StringencodeNewline(java.lang.String str)Encodes the given line (replaces\\with\\\\,\rwith\\rand\nwith\\n).
-
Field Details
-
FILE_PREFIX
public static final java.lang.String FILE_PREFIXThe prefix of Kieker's record files.- See Also:
- Constant Field Values
-
MAP_FILENAME
public static final java.lang.String MAP_FILENAMEThe name of Kieker's map files.- See Also:
- Constant Field Values
-
LEGACY_FILE_PREFIX
public static final java.lang.String LEGACY_FILE_PREFIXThe old prefix of Kieker's record files.- See Also:
- Constant Field Values
-
LEGACY_MAP_FILENAME
public static final java.lang.String LEGACY_MAP_FILENAMEThe old name of Kieker's map files.- See Also:
- Constant Field Values
-
DAT_FILE_EXTENSION
public static final java.lang.String DAT_FILE_EXTENSIONThe usual extension of Kieker's record files.- See Also:
- Constant Field Values
-
ZIP_FILE_EXTENSION
public static final java.lang.String ZIP_FILE_EXTENSIONThe extension of Kieker's zipped record files.- See Also:
- Constant Field Values
-
DEFLATE_FILE_EXTENSION
public static final java.lang.String DEFLATE_FILE_EXTENSIONThe extension of Kieker's defalted record files.- See Also:
- Constant Field Values
-
BZIP2_FILE_EXTENSION
public static final java.lang.String BZIP2_FILE_EXTENSIONThe extension of Kieker's bzip2ed record files.- See Also:
- Constant Field Values
-
GZIP_FILE_EXTENSION
public static final java.lang.String GZIP_FILE_EXTENSIONThe extension of Kieker's gzipped record files.- See Also:
- Constant Field Values
-
XZ_FILE_EXTENSION
public static final java.lang.String XZ_FILE_EXTENSIONThe extension of Kieker's xz record files.- See Also:
- Constant Field Values
-
BINARY_FILE_EXTENSION
public static final java.lang.String BINARY_FILE_EXTENSIONThe extension of Kieker's binary record files.- See Also:
- Constant Field Values
-
MAP_FILE_EXTENSION
public static final java.lang.String MAP_FILE_EXTENSIONThe extension of Kieker's mapping files.- See Also:
- Constant Field Values
-
ENCODING
public static final java.lang.String ENCODINGThe encoding usually used within Kieker.- See Also:
- Constant Field Values
-
-
Method Details
-
encodeNewline
public static final java.lang.String encodeNewline(java.lang.String str)Encodes the given line (replaces\\with\\\\,\rwith\\rand\nwith\\n).- Parameters:
str- The string to encode.- Returns:
- The modified string.
-
decodeNewline
public static final java.lang.String decodeNewline(java.lang.String str)Decodes the given line (replaces\\\\with\\,\\rwith\rand\\nwith\n).- Parameters:
str- The string to decode.- Returns:
- The modified string.
-