public class InputStreamDataSource
extends java.lang.Object
implements javax.activation.DataSource
| Constructor and Description |
|---|
InputStreamDataSource(java.io.InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
void |
setType(java.lang.String type) |
public InputStreamDataSource(java.io.InputStream inputStream)
public void setType(java.lang.String type)
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.lang.String getName()
getName in interface javax.activation.DataSourcepublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOExceptionCopyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.