public class StreamPatternExtractor extends Object
PatternTemplate
Constructor and Description |
---|
StreamPatternExtractor() |
Modifier and Type | Method and Description |
---|---|
Iterable<Map.Entry<String,String>> |
extract(Reader reader)
Extracts regular expression patterns from a character streams.
|
Map<String,Pattern> |
getPatterns()
Mapping of names to regular expression patterns to extract from the stream.
|
Map<String,PatternTemplate> |
getTemplates()
Mapping of names to optional templates to use for yielding pattern match results.
|
public Map<String,Pattern> getPatterns()
public Map<String,PatternTemplate> getTemplates()
public Iterable<Map.Entry<String,String>> extract(Reader reader)
Patterns are resolved lazily; only as much of the stream is read in order to satisfy a request for a specific key in the returned map.
Note: If an IOException
is encountered when
accessing the stream, the exception is caught and suppressed. This
results in null
values being returned for values not extracted
before the exception occurred.
reader
- the character stream .Copyright © 2025 Open Identity Platform Community. All rights reserved.