diff options
| author | Björn Hagemeister | 2014-07-11 14:54:53 +0200 |
|---|---|---|
| committer | Björn Hagemeister | 2014-07-11 14:54:53 +0200 |
| commit | 09cbdc29b19e02d7cc8980163569769e135c310b (patch) | |
| tree | f0c37708cb95f374d1d7bf54e1700fe2c996ead6 /src/main/java/org/openslx | |
| parent | Fixed bug in readMetaData which returned true, while not reading anything. (diff) | |
| parent | Make method to write a crc file to disk static (diff) | |
| download | master-sync-shared-09cbdc29b19e02d7cc8980163569769e135c310b.tar.gz master-sync-shared-09cbdc29b19e02d7cc8980163569769e135c310b.tar.xz master-sync-shared-09cbdc29b19e02d7cc8980163569769e135c310b.zip | |
Merge branch 'master' of git.openslx.org:bwlp/master-sync-shared
Diffstat (limited to 'src/main/java/org/openslx')
| -rw-r--r-- | src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java b/src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java index 9612361..49c909d 100644 --- a/src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java +++ b/src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java @@ -39,9 +39,9 @@ public class CRCFile * @param filename Where to save the created crc file * @throws IOException If it's not possible to write the file */ - public CRCFile( List<Integer> listOfCrcSums, String filename ) throws IOException + public static CRCFile writeCrcFile( List<Integer> listOfCrcSums, String filename ) throws IOException { - this.file = new File( filename ); + File file = new File( filename ); FileOutputStream fos = new FileOutputStream( file ); DataOutputStream dos = new DataOutputStream( fos ); @@ -50,7 +50,7 @@ public class CRCFile } dos.close(); - this.crcSums = listOfCrcSums; + return new CRCFile( filename ); } /** |
