Class TikaParsers
java.lang.Object
org.apache.tika.server.core.resource.TikaParsers
Provides details of all the Parsers registered with
Apache Tika, similar to --list-parsers and
--list-parser-details within the Tika CLI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetParsersHTML(boolean withMimeTypes) protected StringgetParsersJSON(boolean withMimeTypes) protected StringgetParsersPlain(boolean withMimeTypes)
-
Constructor Details
-
TikaParsers
public TikaParsers()
-
-
Method Details
-
getParserDetailsHTML
@GET @Path("/details") @Produces("text/html") public String getParserDetailsHTML() throws TikaConfigException- Throws:
TikaConfigException
-
getParsersHTML
- Throws:
TikaConfigException
-
getParsersHTML
- Throws:
TikaConfigException
-
getParserDetailsJSON
@GET @Path("/details") @Produces("application/json") public String getParserDetailsJSON() throws IOException, TikaConfigException- Throws:
IOExceptionTikaConfigException
-
getParsersJSON
@GET @Produces("application/json") public String getParsersJSON() throws IOException, TikaConfigException- Throws:
IOExceptionTikaConfigException
-
getParsersJSON
- Throws:
IOExceptionTikaConfigException
-
getParserDetailssPlain
@GET @Path("/details") @Produces("text/plain") public String getParserDetailssPlain() throws TikaConfigException- Throws:
TikaConfigException
-
getParsersPlain
- Throws:
TikaConfigException
-
getParsersPlain
- Throws:
TikaConfigException
-