summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-07-11 14:54:53 +0200
committerBjörn Hagemeister2014-07-11 14:54:53 +0200
commit09cbdc29b19e02d7cc8980163569769e135c310b (patch)
treef0c37708cb95f374d1d7bf54e1700fe2c996ead6 /src/main
parentFixed bug in readMetaData which returned true, while not reading anything. (diff)
parentMake method to write a crc file to disk static (diff)
downloadmaster-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')
-rw-r--r--src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java6
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 );
}
/**