Modifier and Type | Field and Description |
---|---|
static String[] |
END_INDICATORS |
static String[] |
START_INDICATORS |
Modifier and Type | Method and Description |
---|---|
static ArrayList<String> |
filter(ArrayList<String> original,
String filter,
String token)
filter array list of lines and get the last portion of the line separated by the token, like ":::".
|
static ArrayList<String> |
findStages(ArrayList<String> lines,
String[] stageIndicators)
find lines that contain stage indicators.
|
static ArrayList<String> |
getFilteredLinesFromFile(String fileName,
String filter)
get lines from given file with specified filter.
|
static ArrayList<String> |
getFilteredLinesFromFile(String fileName,
String filter,
String removeBeforeToken,
String removeAfterToken)
Get lines from a given file with a specified filter, trim the line by removing strings
before removeBeforeToken and after removeAfterToken.
|
static ArrayList<String> |
mergeStages(ArrayList<String> startStages,
ArrayList<String> endStages) |
public static final String[] END_INDICATORS
public static final String[] START_INDICATORS
public static ArrayList<String> getFilteredLinesFromFile(String fileName, String filter, String removeBeforeToken, String removeAfterToken) throws IOException
fileName
- filter
- IOException
public static ArrayList<String> getFilteredLinesFromFile(String fileName, String filter) throws IOException
fileName
- filter
- IOException
public static ArrayList<String> filter(ArrayList<String> original, String filter, String token)
original
- filter
- public static ArrayList<String> findStages(ArrayList<String> lines, String[] stageIndicators)
lines
- stageIndicators
- Copyright © 2017 The Apache Software Foundation. All rights reserved.