Package org.ossreviewtoolkit.model
Object FileFormat.Companion
-
- All Implemented Interfaces:
public class FileFormat.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static FileFormat.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FileFormatforExtension(String extension)Return the FileFormat for the given extension, or nullif there is none.final FileFormatforFile(File file)Return the FileFormat for the given file, or nullif there is none.final List<File>findFilesWithKnownExtensions(File directory)Return a list of all files inside directory with known extensions that can be deserialized. -
-
Method Detail
-
forExtension
final FileFormat forExtension(String extension)
Return the FileFormat for the given extension, or
nullif there is none.
-
forFile
final FileFormat forFile(File file)
Return the FileFormat for the given file, or
nullif there is none.
-
findFilesWithKnownExtensions
final List<File> findFilesWithKnownExtensions(File directory)
Return a list of all files inside directory with known extensions that can be deserialized.
-
-
-
-