Support SMTP URLs
[zxing.git] / core / src / com / google / zxing / client / result / AbstractDoCoMoResultParser.java
index dd9e314..3d2c1d2 100644 (file)
@@ -24,20 +24,16 @@ package com.google.zxing.client.result;
  * <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);
   }
 
 }