Class RegexpPipe
- java.lang.Object
-
- org.apache.sling.pipes.BasePipe
-
- org.apache.sling.pipes.AbstractInputStreamPipe
-
- org.apache.sling.pipes.internal.inputstream.RegexpPipe
-
- All Implemented Interfaces:
Pipe
public class RegexpPipe extends AbstractInputStreamPipe
Pipe outputting matches of a regexp from a plain text file
-
-
Field Summary
Fields Modifier and Type Field Description static StringPN_PATTERNstatic StringRESOURCE_TYPE-
Fields inherited from class org.apache.sling.pipes.AbstractInputStreamPipe
binding, BINDING_IS, REMOTE_START, VALID_PATH
-
Fields inherited from class org.apache.sling.pipes.BasePipe
afterHook, beforeHook, bindingProviders, bindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, EMPTY_ITERATOR, IGNORED_NODES, IGNORED_PROPERTIES, parent, plumber, PN_AFTERHOOK, PN_BEFOREHOOK, PN_STATUS, PN_STATUS_MODIFIED, properties, READ_ONLY, resolver, resource, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
-
-
Constructor Summary
Constructors Constructor Description RegexpPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<String>getGroupNames(String pattern)Iterator<org.apache.sling.api.resource.Resource>getOutput(InputStream inputStream)-
Methods inherited from class org.apache.sling.pipes.AbstractInputStreamPipe
after, computeOutput, getOutputBinding
-
Methods inherited from class org.apache.sling.pipes.BasePipe
before, getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, modifiesContent, provideAdditionalBindings, setParent, toString
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PN_PATTERN
public static final String PN_PATTERN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RegexpPipe
public RegexpPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
-
Method Detail
-
getOutput
public Iterator<org.apache.sling.api.resource.Resource> getOutput(InputStream inputStream)
- Specified by:
getOutputin classAbstractInputStreamPipe
-
getGroupNames
protected Collection<String> getGroupNames(String pattern)
- Parameters:
pattern- configured pattern- Returns:
- list of group names identified in a given pattern
-
-