Auto saved by Logseq
This commit is contained in:
parent
28435dcaed
commit
8cca83b8c7
@ -29,8 +29,6 @@
|
||||
-
|
||||
- Check Mime Type [[Code Snippet]] [[Java]]
|
||||
- ``` java
|
||||
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
final File file = new File("c:\\tmp\\tst.csv");
|
||||
System.out.println(new FileDataSource(file).getContentType());
|
||||
@ -41,5 +39,4 @@
|
||||
System.out.println(new MimetypesFileTypeMap().getContentType(file.getName()));
|
||||
}
|
||||
```
|
||||
- {{embed ((a55e39ce-e45f-4aba-93a6-c946b2fbd120))}}
|
||||
-
|
||||
Loading…
x
Reference in New Issue
Block a user