public class BracketsRemover extends IndependentMapper<String>
| Constructor and Description |
|---|
BracketsRemover() |
BracketsRemover(String[] startBrackets,
String[] endBrackets)
Constructs a new
BracketsRemover object. |
| Modifier and Type | Method and Description |
|---|---|
String |
doMap(String sent)
Returns a copy of
sent with its brackets, and the contained
text, removed. |
static void |
main(String[] args)
Applies the
BracketsRemover mapper to each line in standard
input and prints the result. |
doMappublic BracketsRemover(String[] startBrackets, String[] endBrackets)
BracketsRemover object.public BracketsRemover()
public String doMap(String sent)
sent with its brackets, and the contained
text, removed.doMap in class IndependentMapper<String>public static void main(String[] args) throws IOException
BracketsRemover mapper to each line in standard
input and prints the result.args - IOExceptionCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.