public class StreamingOnRequestDataSource
extends java.lang.Object
implements javax.activation.DataSource
Constructor and Description |
---|
StreamingOnRequestDataSource(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.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(java.io.InputStream in)
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
public void setLastUse(boolean lastUse)
lastUse
- Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.