public class DataURIEncodingInputStream extends InputStream
InputStream that encodes arbitrary binary data from an input stream in data URI format.
This object is thread-safe.| Constructor and Description |
|---|
DataURIEncodingInputStream(InputStream in,
org.apache.tika.mime.MediaType type) |
DataURIEncodingInputStream(Path path,
org.apache.tika.metadata.Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static Reader |
createReader(Path path,
org.apache.tika.metadata.Metadata metadata) |
int |
read() |
mark, markSupported, read, read, reset, skippublic DataURIEncodingInputStream(Path path, org.apache.tika.metadata.Metadata metadata) throws IOException
IOExceptionpublic DataURIEncodingInputStream(InputStream in, org.apache.tika.mime.MediaType type)
public static Reader createReader(Path path, org.apache.tika.metadata.Metadata metadata) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2018. All rights reserved.