summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/imagemaster
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/imagemaster')
-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 );
}
/**