public class InputStreamDataSource extends Object implements DataSource, jakarta.activation.DataSource
Constructor and Description |
---|
InputStreamDataSource(String contentType,
InputStream inputStream)
Use content type application/octet-stream in case it cannot be
determined.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public InputStreamDataSource(String contentType, InputStream inputStream)
public String getContentType()
getContentType
in interface jakarta.activation.DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface jakarta.activation.DataSource
IOException
public String getName()
getName
in interface jakarta.activation.DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface jakarta.activation.DataSource
IOException
Copyright © 2023 Frank!Framework. All rights reserved.