Package io.github.astrapi69.sort
Class SortFileExtensions
- java.lang.Object
-
- io.github.astrapi69.sort.SortFileExtensions
-
public final class SortFileExtensions extends java.lang.Object
The classSortFileExtensions
provides algorithms for sort file content.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sort(java.io.File file, java.util.Comparator<java.lang.String> comparator, java.lang.String encoding)
Sort the file content from the givenFile
.
-
-
-
Method Detail
-
sort
public static void sort(java.io.File file, java.util.Comparator<java.lang.String> comparator, java.lang.String encoding) throws java.io.FileNotFoundException, java.io.IOException
Sort the file content from the givenFile
.- Parameters:
file
- the filecomparator
- the comparatorencoding
- the encoding- Throws:
java.io.FileNotFoundException
- is thrown if the given file is not found.java.io.IOException
- Signals that an I/O exception has occurred.
-
-