@Deprecated
public class MetadataEnabledInputStream
extends java.io.InputStream
Content
.
It can be used in situations where the parsing framework is unable to detect the correct type on its own.
To use this, simply create a new instance with the source InputStream and known content type value.
Constructor and Description |
---|
MetadataEnabledInputStream(java.io.InputStream delegate,
java.lang.String contentType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
java.util.Optional<java.lang.String> |
getContentType()
Deprecated.
|
int |
read()
Deprecated.
|
public MetadataEnabledInputStream(java.io.InputStream delegate, java.lang.String contentType)
public java.util.Optional<java.lang.String> getContentType()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException