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.String
BINARY_FILE_EXTENSION
The extension of Kieker's binary record files.static java.lang.String
BZIP2_FILE_EXTENSION
The extension of Kieker's bzip2ed record files.static java.lang.String
DAT_FILE_EXTENSION
The usual extension of Kieker's record files.static java.lang.String
DEFLATE_FILE_EXTENSION
The extension of Kieker's defalted record files.static java.lang.String
ENCODING
The encoding usually used within Kieker.static java.lang.String
FILE_PREFIX
The prefix of Kieker's record files.static java.lang.String
GZIP_FILE_EXTENSION
The extension of Kieker's gzipped record files.static java.lang.String
LEGACY_FILE_PREFIX
The old prefix of Kieker's record files.static java.lang.String
LEGACY_MAP_FILENAME
The old name of Kieker's map files.static java.lang.String
MAP_FILE_EXTENSION
The extension of Kieker's mapping files.static java.lang.String
MAP_FILENAME
The name of Kieker's map files.static java.lang.String
XZ_FILE_EXTENSION
The extension of Kieker's xz record files.static java.lang.String
ZIP_FILE_EXTENSION
The extension of Kieker's zipped record files. -
Method Summary
Modifier and Type Method Description static java.lang.String
decodeNewline(java.lang.String str)
Decodes the given line (replaces\\\\
with\\
,\\r
with\r
and\\n
with\n
).static java.lang.String
encodeNewline(java.lang.String str)
Encodes the given line (replaces\\
with\\\\
,\r
with\\r
and\n
with\\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\\\\
,\r
with\\r
and\n
with\\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\\
,\\r
with\r
and\\n
with\n
).- Parameters:
str
- The string to decode.- Returns:
- The modified string.
-