Package org.apache.tika.server.resource
Class UnpackerResource
- java.lang.Object
-
- org.apache.tika.server.resource.UnpackerResource
-
@Path("/unpack") public class UnpackerResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEXT_FILENAME
-
Constructor Summary
Constructors Constructor Description UnpackerResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
metadataToCsv(Metadata metadata, OutputStream outputStream)
Map<String,byte[]>
unpack(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo info)
Map<String,byte[]>
unpackAll(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo info)
-
-
-
Field Detail
-
TEXT_FILENAME
public static final String TEXT_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
metadataToCsv
public static void metadataToCsv(Metadata metadata, OutputStream outputStream) throws IOException
- 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
-
-