Package de.julielab.jcore.ae.jpos.utils
Class Utils
- java.lang.Object
-
- de.julielab.jcore.ae.jpos.utils.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidShuffleFileContents(File inputFile, File outputFile)shuffles the contents of a file on a sentence levelstatic voidwriteFile(File filename, String myString)static voidwriteFile(File filename, List<String> lines)writes ArrayList into file.
-
-
-
Method Detail
-
ShuffleFileContents
public static void ShuffleFileContents(File inputFile, File outputFile) throws IOException
shuffles the contents of a file on a sentence level- Parameters:
inputFile-outputFile-- Throws:
IOException
-
writeFile
public static void writeFile(File filename, List<String> lines)
writes ArrayList into file. Here, we assume that each element of the ArrayList is a String, which we write as new line into the file.- Parameters:
filename- full path
-
-