public class InputStreamContentProvider extends Object implements ContentProvider
NULL_CONTENT
Constructor and Description |
---|
InputStreamContentProvider(InputStream resource) |
Modifier and Type | Method and Description |
---|---|
InputStream |
createInputStream()
Create a new input stream
Note: The caller must close the stream |
long |
getSize() |
boolean |
hasContent() |
public InputStreamContentProvider(InputStream resource) throws IOException
IOException
public long getSize()
getSize
in interface ContentProvider
public InputStream createInputStream() throws IOException
ContentProvider
createInputStream
in interface ContentProvider
IOException
public boolean hasContent()
hasContent
in interface ContentProvider