Class TurFileUtils
Object
TurFileUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TurFileAttributesdocumentToText(MultipartFile multipartFile) getFileContent(InputStream stream, BodyContentHandler handlerInner, AutoDetectParser parserInner, Metadata metadataInner, ParseContext parseContextInner) parseDocument(InputStream stream) static TurTikaFileAttributesstatic TurTikaFileAttributesparseFile(MultipartFile multipartFile) static TurTikaFileAttributesstatic TurTikaFileAttributesstatic TurFileAttributesurlContentToText(URL url)
-
Field Details
-
PDF_DOC_INFO_TITLE
- See Also:
-
CONNECTION_TIMEOUT_MILLIS
public static final int CONNECTION_TIMEOUT_MILLIS- See Also:
-
TMP
- See Also:
-
HEAD
- See Also:
-
-
Method Details
-
readFile
-
readFile
-
parseFile
-
parseFile
-
documentToText
-
urlContentToText
-
parseDocument
- Throws:
IOException
-
getFileContent
public static Optional<String> getFileContent(InputStream stream, BodyContentHandler handlerInner, AutoDetectParser parserInner, Metadata metadataInner, ParseContext parseContextInner) throws IOException - Throws:
IOException
-