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