@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.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException