public final class SortFileExtensions
extends java.lang.Object
SortFileExtensions provides algorithms for sort file content.| Modifier and Type | Method and 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 given
File. |
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
File.file - the filecomparator - the comparatorencoding - the encodingjava.io.FileNotFoundException - is thrown if the given file is not found.java.io.IOException - Signals that an I/O exception has occurred.