Package org.yamcs.utils
Class Mimetypes
- java.lang.Object
-
- org.yamcs.utils.Mimetypes
-
public class Mimetypes extends Object
Maps files to Internet media types based on their file extension.The mapping is read from a file mime.types which must be available in the classpath root.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOCTET_STREAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MimetypesgetInstance()StringgetMimetype(File file)StringgetMimetype(String filename)StringgetMimetype(Path file)
-
-
-
Field Detail
-
OCTET_STREAM
public static final String OCTET_STREAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static Mimetypes getInstance() throws IOException
- Throws:
IOException
-
-