public class MessageDataSource extends Object implements DataSource, jakarta.activation.DataSource, Closeable
Constructor and Description |
---|
MessageDataSource(Message message) |
MessageDataSource(Message message,
String newContentType) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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 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
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023 Frank!Framework. All rights reserved.