public final class LicenseHeaderStep extends Object implements Serializable
Prefixes a license header before the package statement.
| Modifier and Type | Method and Description |
|---|---|
static FormatterStep |
createFromFile(File licenseHeaderFile,
Charset encoding,
String delimiter)
Creates a FormatterStep which forces the start of each file to match the license header contained in the given file.
|
static FormatterStep |
createFromFile(File licenseHeaderFile,
Charset encoding,
String delimiter,
String yearSeparator)
Creates a FormatterStep which forces the start of each file to match the license header contained in the given file.
|
static FormatterStep |
createFromHeader(String licenseHeader,
String delimiter)
Creates a FormatterStep which forces the start of each file to match a license header.
|
static FormatterStep |
createFromHeader(String licenseHeader,
String delimiter,
String yearSeparator) |
static String |
defaultYearDelimiter() |
String |
format(String raw)
Formats the given string.
|
static String |
name() |
static SerializableFileFilter |
unsupportedJvmFilesFilter() |
public static FormatterStep createFromHeader(String licenseHeader, String delimiter)
Creates a FormatterStep which forces the start of each file to match a license header.
public static FormatterStep createFromHeader(String licenseHeader, String delimiter, String yearSeparator)
public static FormatterStep createFromFile(File licenseHeaderFile, Charset encoding, String delimiter)
Creates a FormatterStep which forces the start of each file to match the license header contained in the given file.
public static FormatterStep createFromFile(File licenseHeaderFile, Charset encoding, String delimiter, String yearSeparator)
Creates a FormatterStep which forces the start of each file to match the license header contained in the given file.
public static String name()
public static String defaultYearDelimiter()
public static SerializableFileFilter unsupportedJvmFilesFilter()