|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codelabor.system.mime.service.TikaMimeDetectServiceImpl
public class TikaMimeDetectServiceImpl
마임타입 탐지 서비스 구현 클래스
Apache Tika를 활용한 구현 클래스
Constructor Summary | |
---|---|
TikaMimeDetectServiceImpl()
|
Method Summary | |
---|---|
String |
getMimeType(byte[] byteArray)
마임타입을 가져온다. |
String |
getMimeType(File file)
마임타입을 가져온다. |
String |
getMimeType(InputStream inputStream)
마임타입을 가져온다. |
String |
getMimeType(String path)
마임타입을 가져온다. |
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 TikaMimeDetectServiceImpl()
Method Detail |
---|
public String getMimeType(InputStream inputStream) throws Exception
MimeDetectService
getMimeType
in interface MimeDetectService
inputStream
- 입력 스트림
Exception
public String getMimeType(File file) throws Exception
MimeDetectService
getMimeType
in interface MimeDetectService
file
- 파일
Exception
public String getMimeType(URL url) throws Exception
MimeDetectService
getMimeType
in interface MimeDetectService
url
- URL
Exception
public String getMimeType(byte[] byteArray) throws Exception
MimeDetectService
getMimeType
in interface MimeDetectService
byteArray
- 바이트 배열
Exception
public String getMimeType(String path) throws Exception
MimeDetectService
getMimeType
in interface MimeDetectService
path
- 파일 경로
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |