From f434b398c3cf7f78cc615e06ccae65ad518e096c Mon Sep 17 00:00:00 2001 From: poljvd Date: Tue, 5 Nov 2013 09:23:00 +0100 Subject: [PATCH] Changed settings file to binary format (io ascii) Former-commit-id: a4e31b7661299470ea136f8cccd9552c38d6b6f4 --- deploy/HyperCon.jar.REMOVED.git-id | 2 +- .../src/org/hyperion/hypercon/ConfigurationFile.java | 8 ++++---- .../ConfigTool/src/org/hyperion/hypercon/Main.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/HyperCon.jar.REMOVED.git-id b/deploy/HyperCon.jar.REMOVED.git-id index f431cf2c..2e624926 100644 --- a/deploy/HyperCon.jar.REMOVED.git-id +++ b/deploy/HyperCon.jar.REMOVED.git-id @@ -1 +1 @@ -698de0cb95bc237c1f98b0b2b77f70f40c95adb9 \ No newline at end of file +73c0de615f1ed0905a42ceb4a21c07a845f5e806 \ No newline at end of file diff --git a/src/config-tool/ConfigTool/src/org/hyperion/hypercon/ConfigurationFile.java b/src/config-tool/ConfigTool/src/org/hyperion/hypercon/ConfigurationFile.java index ba2ce6b3..285978f8 100644 --- a/src/config-tool/ConfigTool/src/org/hyperion/hypercon/ConfigurationFile.java +++ b/src/config-tool/ConfigTool/src/org/hyperion/hypercon/ConfigurationFile.java @@ -18,8 +18,8 @@ public class ConfigurationFile { public void load(String pFilename) { pProps.clear(); // try (InputStream in = new InflaterInputStream(new FileInputStream(pFilename))){ -// try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){ - try (InputStream in = new FileInputStream(pFilename)) { + try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){ +// try (InputStream in = new FileInputStream(pFilename)) { pProps.load(in); } catch (Throwable t) { // TODO Auto-generated catch block @@ -29,8 +29,8 @@ public class ConfigurationFile { public void save(String pFilename) { // try (OutputStream out = new DeflaterOutputStream(new FileOutputStream(pFilename))) { -// try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) { - try (OutputStream out = (new FileOutputStream(pFilename))) { + try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) { +// try (OutputStream out = (new FileOutputStream(pFilename))) { pProps.store(out, "Pesistent settings file for HyperCon"); } catch (IOException e) { e.printStackTrace(); diff --git a/src/config-tool/ConfigTool/src/org/hyperion/hypercon/Main.java b/src/config-tool/ConfigTool/src/org/hyperion/hypercon/Main.java index 568932ef..1c2c8eb1 100644 --- a/src/config-tool/ConfigTool/src/org/hyperion/hypercon/Main.java +++ b/src/config-tool/ConfigTool/src/org/hyperion/hypercon/Main.java @@ -15,7 +15,7 @@ import org.hyperion.hypercon.gui.ConfigPanel; * JAVA application (contains the entry-point). */ public class Main { - public static final String configFilename = "hyerpcon.dat"; + public static final String configFilename = "hypercon.dat"; /** * Entry point to start HyperCon