Changed settings file to binary format (io ascii)

Former-commit-id: a4e31b7661299470ea136f8cccd9552c38d6b6f4
This commit is contained in:
poljvd 2013-11-05 09:23:00 +01:00
parent 56ce6dddfc
commit f434b398c3
3 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
698de0cb95bc237c1f98b0b2b77f70f40c95adb9 73c0de615f1ed0905a42ceb4a21c07a845f5e806

View File

@ -18,8 +18,8 @@ public class ConfigurationFile {
public void load(String pFilename) { public void load(String pFilename) {
pProps.clear(); pProps.clear();
// try (InputStream in = new InflaterInputStream(new FileInputStream(pFilename))){ // try (InputStream in = new InflaterInputStream(new FileInputStream(pFilename))){
// try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){ try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){
try (InputStream in = new FileInputStream(pFilename)) { // try (InputStream in = new FileInputStream(pFilename)) {
pProps.load(in); pProps.load(in);
} catch (Throwable t) { } catch (Throwable t) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
@ -29,8 +29,8 @@ public class ConfigurationFile {
public void save(String pFilename) { public void save(String pFilename) {
// try (OutputStream out = new DeflaterOutputStream(new FileOutputStream(pFilename))) { // try (OutputStream out = new DeflaterOutputStream(new FileOutputStream(pFilename))) {
// try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) { try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) {
try (OutputStream out = (new FileOutputStream(pFilename))) { // try (OutputStream out = (new FileOutputStream(pFilename))) {
pProps.store(out, "Pesistent settings file for HyperCon"); pProps.store(out, "Pesistent settings file for HyperCon");
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -15,7 +15,7 @@ import org.hyperion.hypercon.gui.ConfigPanel;
* JAVA application (contains the entry-point). * JAVA application (contains the entry-point).
*/ */
public class Main { public class Main {
public static final String configFilename = "hyerpcon.dat"; public static final String configFilename = "hypercon.dat";
/** /**
* Entry point to start HyperCon * Entry point to start HyperCon