|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codelabor.system.mime.util.TikaMimeDetectUtils
public class TikaMimeDetectUtils
마임타입 탐지 유틸리티 클래스
Apache Tika를 활용한 구현 클래스
| Constructor Summary | |
|---|---|
TikaMimeDetectUtils()
|
|
| Method Summary | |
|---|---|
static String |
getMimeType(byte[] byteArray)
마임타입을 가져온다. |
static String |
getMimeType(File file)
마임타입을 가져온다. |
static String |
getMimeType(InputStream inputStream)
마임타입을 가져온다. |
static String |
getMimeType(String path)
마임타입을 가져온다. |
static String |
getMimeType(URL url)
마임타입을 가져온다. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TikaMimeDetectUtils()
| Method Detail |
|---|
public static String getMimeType(InputStream inputStream)
throws Exception
inputStream - 입력 스트림
Exception
public static String getMimeType(File file)
throws Exception
file - 파일
Exception
public static String getMimeType(URL url)
throws Exception
url - URL
Exception
public static String getMimeType(byte[] byteArray)
throws Exception
byteArray - 바이트 배열
Exception
public static String getMimeType(String path)
throws Exception
path - 파일 경로
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||