public class StreamingOnRequestDataSource extends Object implements DataSource
Constructor and Description |
---|
StreamingOnRequestDataSource(InputStream in) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setLastUse(boolean lastUse)
This flag says that this is the last use of the stream, hence do not
need to cache it if it has not
already cached.
|
public StreamingOnRequestDataSource(InputStream in)
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public void setLastUse(boolean lastUse)
lastUse
- Boolean value to setCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.