Class TranslateResource
- java.lang.Object
-
- org.apache.tika.server.core.resource.TranslateResource
-
@Path("/translate") public class TranslateResource extends Object
-
-
Constructor Summary
Constructors Constructor Description TranslateResource(ServerStatus serverStatus, long timeoutMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
autoTranslate(InputStream is, String translator, String dLang)
String
translate(InputStream is, String translator, String sLang, String dLang)
-
-
-
Constructor Detail
-
TranslateResource
public TranslateResource(ServerStatus serverStatus, long timeoutMillis)
-
-
Method Detail
-
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
-
-