| Modifier and Type | Field and Description |
|---|---|
| public static final KeyPairResourceParser | EMPTY
Hides org. |
| Modifier and Type | Method and Description |
|---|---|
| public static KeyPairResourceParser | |
| public static KeyPairResourceParser | |
| public boolean | Returns: true if the parser can extract some key pairs from the linesA hint as to the origin of the text lines resourceKey, List<String> The resource lines lines)
|
| public static boolean | |
| public static boolean | |
| public static byte[] | Returns: The decoded data bytesThe data lines - empty lines and spaces are automatically deleted before BASE-64 decoding
takes place. lines)Converts the lines assumed to contain BASE-64 encoded data into the actual content bytes. |
| public static AbstractMap. | Returns: ASimpleImmutableEntry whose key is the first line index that matched and value
the matched marker index - null if no match foundThe list of lines to scan - ignored if lines, List<String> null/emptyThe markers to match - ignored if markers)null/emptyAttempts to locate a line that contains one of the markers |
| public static AbstractMap. | Returns: ASimpleImmutableEntry whose key is the first line index that matched and value
the matched marker index - null if no match foundThe list of lines to scan - ignored if lines, int null/emptyThe scan start line index startLine, List<String> The markers to match - ignored if markers)null/emptyAttempts to locate a line that contains one of the markers |
| public static String |
| EMPTY | back to summary |
|---|---|
| public static final KeyPairResourceParser EMPTY Hides org. An empty parser that never fails, but always report that it cannot extract key pairs and returns empty list if asked to load | |
| aggregate | back to summary |
|---|---|
| public static KeyPairResourceParser aggregate(KeyPairResourceParser... parsers) | |
| aggregate | back to summary |
|---|---|
| public static KeyPairResourceParser aggregate(Collection<? extends KeyPairResourceParser> parsers) | |
| canExtractKeyPairs | back to summary |
|---|---|
public boolean canExtractKeyPairs(NamedResource resourceKey, List<String> lines) throws IOException, GeneralSecurityException
| |
| containsMarkerLine | back to summary |
|---|---|
| public static boolean containsMarkerLine(List<String> lines, String marker) | |
| containsMarkerLine | back to summary |
|---|---|
| public static boolean containsMarkerLine(List<String> lines, List<String> markers) | |
| extractDataBytes | back to summary |
|---|---|
| public static byte[] extractDataBytes(Collection<String> lines) Converts the lines assumed to contain BASE-64 encoded data into the actual content bytes.
| |
| findMarkerLine | back to summary |
|---|---|
| public static AbstractMap. Attempts to locate a line that contains one of the markers
| |
| findMarkerLine | back to summary |
|---|---|
| public static AbstractMap. Attempts to locate a line that contains one of the markers
| |
| joinDataLines | back to summary |
|---|---|
| public static String joinDataLines(Collection<String> lines) | |