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