Packages that use Sorters.FileAndIndex
Package
Description
The I2PSnark web interface (i2psnark.war): servlets and helpers for torrent management, file browsing and configuration.
Uses of Sorters.FileAndIndex in org.klomp.snark.web
Classes in org.klomp.snark.web that implement interfaces with type arguments of type Sorters.FileAndIndexModifier and TypeClassDescriptionprivate static classForward or reverse sort, but the fallback is always forward.private static classSort alphabetically in current locale, ignore case, directories first.Methods in org.klomp.snark.web that return types with arguments of type Sorters.FileAndIndexModifier and TypeMethodDescriptionstatic Comparator<Sorters.FileAndIndex> Sorters.getFileComparator(int type, I2PSnarkServlet servlet) Build the comparator that orders a torrent's file entries by a details-page column.private static List<Sorters.FileAndIndex> I2PSnarkServlet.listFileAndIndex(File dir, Storage storage, long[] remainingArray) List the files in a directory and wrap each in a FileAndIndex with the given remaining array.(package private) static List<Sorters.FileAndIndex> I2PSnarkServlet.wrapFileList(File[] ls, Storage storage, long[] remainingArray, long[] previewArray, boolean skipPaddingDirs) Wraps a raw directory listing in Sorters.FileAndIndex entries carrying the precomputed per-file remaining/preview arrays, optionally hiding legacy padding directories.Methods in org.klomp.snark.web with parameters of type Sorters.FileAndIndexModifier and TypeMethodDescriptionstatic intSorters.FileNameComparator.comp(Sorters.FileAndIndex l, Sorters.FileAndIndex r) Compares two files of a torrent.intSorters.FAISort.compare(Sorters.FileAndIndex l, Sorters.FileAndIndex r) intSorters.FileNameComparator.compare(Sorters.FileAndIndex l, Sorters.FileAndIndex r) intSorters.FAIPriorityComparator.compareIt(Sorters.FileAndIndex l, Sorters.FileAndIndex r) Highest first.intSorters.FAIRemainingComparator.compareIt(Sorters.FileAndIndex l, Sorters.FileAndIndex r) intSorters.FAISizeComparator.compareIt(Sorters.FileAndIndex l, Sorters.FileAndIndex r) protected abstract intSorters.FAISort.compareIt(Sorters.FileAndIndex l, Sorters.FileAndIndex r) Compare two file/index entries.intSorters.FAITypeComparator.compareIt(Sorters.FileAndIndex l, Sorters.FileAndIndex r) private booleanI2PSnarkServlet.renderFileRow(StringBuilder buf, I2PSnarkServlet.FileRowContext ctx, Sorters.FileAndIndex fai, boolean rowEven, I2PSnarkServlet.FileRowCounters counters) Renders a single file row for the torrent file browser table.private StringSorters.FAITypeComparator.toName(Sorters.FileAndIndex fai) Gives the file name used for the type comparison.Method parameters in org.klomp.snark.web with type arguments of type Sorters.FileAndIndexModifier and TypeMethodDescriptionprivate voidI2PSnarkServlet.getPlaylist(StringBuilder buf, List<Sorters.FileAndIndex> fileList, String reqURL, int sort, Storage storage, long[] remainingArray) Append playlist entries in m3u format to buf.