Class UnpackerResource
java.lang.Object
org.apache.tika.server.core.resource.UnpackerResource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
metadataToCsv
(Metadata metadata, OutputStream outputStream) unpack
(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo info) unpackAll
(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo info)
-
Field Details
-
TEXT_FILENAME
- See Also:
-
META_FILENAME
- See Also:
-
UNPACK_MAX_BYTES_KEY
- See Also:
-
-
Constructor Details
-
UnpackerResource
public UnpackerResource()
-
-
Method Details
-
metadataToCsv
- Throws:
IOException
-
unpack
@Path("/{id:(/.*)?}") @PUT @Produces({"application/zip","application/x-tar"}) public Map<String,byte[]> unpack(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info) throws Exception - Throws:
Exception
-
unpackAll
@Path("/all{id:(/.*)?}") @PUT @Produces({"application/zip","application/x-tar"}) public Map<String,byte[]> unpackAll(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info) throws Exception - Throws:
Exception
-