From 7de4f7d2881f9f8a10714f0ce49e62a3d7abea94 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Fri, 11 Jul 2014 14:41:30 +0200 Subject: Make method to write a crc file to disk static --- src/main/java/org/openslx/imagemaster/crcchecker/CRCFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/openslx/imagemaster') 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 listOfCrcSums, String filename ) throws IOException + public static CRCFile writeCrcFile( List 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 ); } /** -- cgit v1.2.3-55-g7522