|
@@ -19,7 +19,7 @@ public class ItemParser {
|
19
|
19
|
}
|
20
|
20
|
|
21
|
21
|
public ArrayList<String> parseRawDataIntoStringArray(String rawData) {
|
22
|
|
- String rawDataFix = rawData.substring(0, rawData.length()-2);
|
|
22
|
+ String rawDataFix = rawData.substring(0, rawData.length() - 2);
|
23
|
23
|
String stringPattern = "##";
|
24
|
24
|
ArrayList<String> response = splitStringWithRegexPattern(stringPattern, rawDataFix);
|
25
|
25
|
return response;
|
|
@@ -40,12 +40,6 @@ public class ItemParser {
|
40
|
40
|
return matcher.replaceAll("o");
|
41
|
41
|
}
|
42
|
42
|
|
43
|
|
- public String fixLeftOverHashes(String s){
|
44
|
|
- Pattern pattern = Pattern.compile("[##]");
|
45
|
|
- Matcher matcher = pattern.matcher(s);
|
46
|
|
- return matcher.replaceAll("");
|
47
|
|
- }
|
48
|
|
-
|
49
|
43
|
public LinkedHashMap<String, String> getKeyValueEntries(String valuePair) {
|
50
|
44
|
ArrayList<String> keyValuePairs = findKeyValuePairsInRawItemData(valuePair);
|
51
|
45
|
LinkedHashMap<String, String> itemDescription = new LinkedHashMap<String, String>();
|
|
@@ -165,5 +159,4 @@ public class ItemParser {
|
165
|
159
|
}
|
166
|
160
|
return priceCount;
|
167
|
161
|
}
|
168
|
|
-
|
169
|
162
|
}
|