* <p>Thanks to Jeff Griffin for proposing rewrite of these classes that relies less
* on exception-based mechanisms during parsing.</p>
*
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
*/
abstract class AbstractDoCoMoResultParser extends ResultParser {
- static String[] matchDoCoMoPrefixedField(String prefix, String rawText) {
- return matchPrefixedField(prefix, rawText, ';');
+ static String[] matchDoCoMoPrefixedField(String prefix, String rawText, boolean trim) {
+ return matchPrefixedField(prefix, rawText, ';', trim);
}
- static String matchSingleDoCoMoPrefixedField(String prefix, String rawText) {
- return matchSinglePrefixedField(prefix, rawText, ';');
- }
-
- static String[] maybeWrap(String value) {
- return value == null ? null : new String[] { value };
+ static String matchSingleDoCoMoPrefixedField(String prefix, String rawText, boolean trim) {
+ return matchSinglePrefixedField(prefix, rawText, ';', trim);
}
}