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