private static class LegacyLogManagerImpl.SequencedFileName extends java.lang.Object implements LegacyLogManagerImpl.FileName
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
ext
The file extension, might not be present.
|
private boolean |
isValid
true if the file name matches the generic pattern, false otherwise. |
private java.lang.String |
nameNoSequenceNoExt
The name prefix before the sequence number.
|
private static java.util.regex.Pattern |
PATTERN
A pattern to match the file name (prefix), 6-digit sequence number and optional file extension.
|
private int |
sequenceNumberInt
The sequence number.
|
| Constructor and Description |
|---|
SequencedFileName(java.lang.String fileName)
Package private constructor to create an instance of SequencedFileName.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExt()
Returns the file extension.
|
java.lang.String |
getPrefix()
Returns the file name without sequence number and extension.
|
private static final java.util.regex.Pattern PATTERN
private boolean isValid
true if the file name matches the generic pattern, false otherwise.private java.lang.String nameNoSequenceNoExt
private java.lang.String ext
private int sequenceNumberInt
SequencedFileName(java.lang.String fileName)
public java.lang.String getPrefix()
getPrefix in interface LegacyLogManagerImpl.FileNamepublic java.lang.String getExt()
getExt in interface LegacyLogManagerImpl.FileName