Skip to content

Commit

Permalink
fixing issues #15 add Method for Escape String \n or \s ( Trim )
Browse files Browse the repository at this point in the history
  • Loading branch information
erlanggaelfallujah committed Nov 3, 2016
1 parent 9a3f9ef commit a384488
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ protected void processDataRequest() throws IOException {

private void mappingISOProp(String data) {
HashMap<String, String> map = new HashMap<String, String>();
BufferedReader bufReader = new BufferedReader(new StringReader(data));
BufferedReader bufReader = new BufferedReader(new StringReader(data.trim()));
String line = null;
try {
while ((line = bufReader.readLine()) != null) {
String parts[] = line.split("=");
map.put(parts[0], parts[1]);
map.put(parts[0].trim(), parts[1].trim());
}
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit a384488

Please sign in to comment.