summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/ConfigParser.java
diff options
context:
space:
mode:
authorarne@gaia.fritz.box <arne@gaia.fritz.box>2012-12-25 23:00:42 +0100
committerarne@gaia.fritz.box <arne@gaia.fritz.box>2012-12-25 23:00:42 +0100
commit8bcda3407e8c0e62668fb17d55ffbf622fae6cf7 (patch)
treef3e223c0dfc602a1045ade92534043a3bc04e84d /src/de/blinkt/openvpn/ConfigParser.java
parent3920bde84b69d04504f1dc7df9cc2ac9e404640d (diff)
Move opening of Inputstream to Configconvert
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigParser.java')
-rw-r--r--src/de/blinkt/openvpn/ConfigParser.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index 3d20bc31..7501ed17 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -2,8 +2,7 @@ package de.blinkt.openvpn;
import java.io.BufferedReader;
import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
+import java.io.Reader;
import java.util.HashMap;
import java.util.Vector;
@@ -17,11 +16,10 @@ public class ConfigParser {
private HashMap<String, Vector<Vector<String>>> options = new HashMap<String, Vector<Vector<String>>>();
- public void parseConfig(InputStream inputStream) throws IOException, ConfigParseError {
+ public void parseConfig(Reader reader) throws IOException, ConfigParseError {
- InputStreamReader fr = new InputStreamReader(inputStream);
- BufferedReader br =new BufferedReader(fr);
+ BufferedReader br =new BufferedReader(reader);
@SuppressWarnings("unused")
int lineno=0;
@@ -229,6 +227,7 @@ public class ConfigParser {
"route-gateway",
"route-metric",
"route-method",
+ "status",
"show-net-up",
"suppress-timestamps",
"tmp-dir",