Class UnpackerResource
- java.lang.Object
-
- org.apache.tika.server.core.resource.UnpackerResource
-
@Path("/unpack") public class UnpackerResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
META_FILENAME
static String
TEXT_FILENAME
static String
UNPACK_MAX_BYTES_KEY
-
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, jakarta.ws.rs.core.HttpHeaders httpHeaders, jakarta.ws.rs.core.UriInfo info)
Map<String,byte[]>
unpackAll(InputStream is, jakarta.ws.rs.core.HttpHeaders httpHeaders, jakarta.ws.rs.core.UriInfo info)
-
-
-
Field Detail
-
TEXT_FILENAME
public static final String TEXT_FILENAME
- See Also:
- Constant Field Values
-
META_FILENAME
public static final String META_FILENAME
- See Also:
- Constant Field Values
-
UNPACK_MAX_BYTES_KEY
public static final String UNPACK_MAX_BYTES_KEY
- 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 jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.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 jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo info) throws Exception
- Throws:
Exception
-
-