| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | AbstractKeyPairResourceParser(List<String>
The markers that indicate the beginning of a parsing block beginners, List<String> The matching (by position) markers that indicate the end of a parsing block enders)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canExtractKeyPairs(NamedResource
A hint as to the origin of the text lines resourceKey, List<String> The resource lines lines)Implements org.
|
| public Collection | extractKeyPairs(SessionContext
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).A hint as to the origin of the text lines resourceKey, String The line containing the begin marker beginMarker, String The line containing the end marker endMarker, FilePasswordProvider The passwordProvider, List<String> FilePasswordProvider to use in case the data is encrypted - may be
null if no encryptedThe block of lines between the markers lines, Map<String, String> Any headers that may have been available when data was read headers)Extracts the key pairs within a single delimited by markers block of lines. |
| public Collection | extractKeyPairs(SessionContext
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).A hint as to the origin of the text lines resourceKey, String The line containing the begin marker beginMarker, String The line containing the end marker endMarker, FilePasswordProvider The passwordProvider, byte[] FilePasswordProvider to use in case the data is encrypted - may be
null if no encryptedThe decoded bytes from the lines containing the data bytes, Map<String, String> Any headers that may have been available when data was read headers)
|
| public abstract Collection | extractKeyPairs(SessionContext
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).A hint as to the origin of the text lines resourceKey, String The line containing the begin marker beginMarker, String The line containing the end marker endMarker, FilePasswordProvider The passwordProvider, InputStream FilePasswordProvider to use in case the data is encrypted - may be
null if no encryptedThe decoded data stream, Map<String, String> InputStreamAny headers that may have been available when data was read headers)
|
| public List | |
| public List | |
| public List | Returns: AList of same size as the ending markers, where each ending marker is encapsulated inside a
singleton list and resides as the same index as the marker it encapsulates
|
| public Collection | loadKeyPairs(SessionContext
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).A hint as to the origin of the text lines resourceKey, FilePasswordProvider The passwordProvider, List<String> FilePasswordProvider to use in case the data is encrypted - may be
null if no encrypted data is expectedThe lines)List of lines as read from the resourceImplements org. Loads key pairs from the given resource text lines |
| protected Map. | separateDataLinesFromHeaders(SessionContext session, NamedResource resourceKey, String startLine, String endLine, List<String> dataLines)
|
| beginners | back to summary |
|---|---|
| private final List<String> beginners | |
| enders | back to summary |
|---|---|
| private final List<String> enders | |
| endingMarkers | back to summary |
|---|---|
| private final List<List<String>> endingMarkers | |
| AbstractKeyPairResourceParser | back to summary |
|---|---|
| protected AbstractKeyPairResourceParser(List<String> beginners, List<String> enders) | |
| extractKeyPairs | back to summary |
|---|---|
| public Collection Extracts the key pairs within a single delimited by markers block of lines. By default cleans up the empty lines, joins them and converts them from BASE64
| |
| extractKeyPairs | back to summary |
|---|---|
public Collection
| |
| extractKeyPairs | back to summary |
|---|---|
public abstract Collection
| |
| getBeginners | back to summary |
|---|---|
| public List | |
| getEnders | back to summary |
|---|---|
| public List | |
| getEndingMarkers | back to summary |
|---|---|
| public List | |
| loadKeyPairs | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Loads key pairs from the given resource text lines
| |
| separateDataLinesFromHeaders | back to summary |
|---|---|
| protected Map. | |