Class HeaderHelper
java.lang.Object
org.cadixdev.gradle.licenser.util.HeaderHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontentStartsWith(BufferedReader reader, Iterator<String> itr, Pattern ignored) static booleancontentStartsWithValidHeaderFormat(BufferedReader reader, org.cadixdev.gradle.licenser.header.CommentHeaderFormat format) static StringgetExtension(String path) static booleanstatic StringskipEmptyLines(BufferedReader reader) static Stringstatic String
-
Method Details
-
getExtension
-
stripIndent
-
stripTrailingIndent
-
contentStartsWith
public static boolean contentStartsWith(BufferedReader reader, Iterator<String> itr, Pattern ignored) throws IOException - Throws:
IOException
-
contentStartsWithValidHeaderFormat
public static boolean contentStartsWithValidHeaderFormat(BufferedReader reader, org.cadixdev.gradle.licenser.header.CommentHeaderFormat format) throws IOException - Throws:
IOException
-
isBlank
-
skipEmptyLines
- Throws:
IOException
-