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 DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic void setLastUse(boolean lastUse)
lastUse - Boolean value to setCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.