-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from qbicsoftware/feature/update-seek-node
update existing seek nodes and fix stuff
- Loading branch information
Showing
26 changed files
with
1,294 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package life.qbic.io; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.File; | ||
import java.io.FileNotFoundException; | ||
import java.io.FileReader; | ||
import java.io.IOException; | ||
import java.util.TreeMap; | ||
|
||
public class PropertyReader { | ||
|
||
public static TreeMap<String, String> getProperties(String infile) { | ||
|
||
TreeMap<String, String> properties = new TreeMap<>(); | ||
BufferedReader bfr = null; | ||
try { | ||
bfr = new BufferedReader(new FileReader(new File(infile))); | ||
} catch (FileNotFoundException e) { | ||
throw new RuntimeException(e); | ||
} | ||
|
||
String line; | ||
while (true) { | ||
try { | ||
if ((line = bfr.readLine()) == null) | ||
break; | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
if (!line.startsWith("#") && !line.isEmpty()) { | ||
String[] property = line.trim().split("="); | ||
properties.put(property[0].trim(), property[1].trim()); | ||
} | ||
} | ||
|
||
try { | ||
bfr.close(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
|
||
return(properties); | ||
} | ||
} |
238 changes: 0 additions & 238 deletions
238
src/main/java/life/qbic/io/commandline/AuthenticationOptions.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.