Class TranslateResource
java.lang.Object
org.apache.tika.server.core.resource.TranslateResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoTranslate
(InputStream is, String translator, String dLang) translate
(InputStream is, String translator, String sLang, String dLang)
-
Constructor Details
-
TranslateResource
-
-
Method Details
-
translate
@PUT @POST @Path("/all/{translator}/{src}/{dest}") @Consumes("*/*") @Produces("text/plain") public String translate(InputStream is, @PathParam("translator") String translator, @PathParam("src") String sLang, @PathParam("dest") String dLang) throws TikaException, IOException - Throws:
TikaException
IOException
-
autoTranslate
@PUT @POST @Path("/all/{translator}/{dest}") @Consumes("*/*") @Produces("text/plain") public String autoTranslate(InputStream is, @PathParam("translator") String translator, @PathParam("dest") String dLang) throws TikaException, IOException - Throws:
TikaException
IOException
-