try {\r
String line = null; //not declared within while loop\r
\r
- // See if the document is encoded with UTF-8\r
+ // See if the document is encoded with UTF-8. It will be marked with {UTF-8} on the first line\r
input.mark(30);\r
if (( line = input.readLine()) != null &&\r
line.contains("{UTF-8}")){\r
connection = new Flow();\r
if(connectionData[4].equals("100")) {\r
// Flip the flow\r
- Element temp = connection.getStart();\r
- connection.setStart(connection.getEnd());\r
- connection.setEnd(temp);\r
+ Element temp = start;\r
+ start = end;\r
+ end = temp;\r
}\r
}\r
connection.setStart(start);\r