public static class DataSourceProvider.ByteArrayDataSource extends Object implements jakarta.activation.DataSource
| Constructor and Description |
|---|
ByteArrayDataSource(InputStream is,
String type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setName(String name) |
public ByteArrayDataSource(InputStream is, String type) throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface jakarta.activation.DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface jakarta.activation.DataSourceIOExceptionpublic String getContentType()
getContentType in interface jakarta.activation.DataSourcepublic String getName()
getName in interface jakarta.activation.DataSourcepublic void setName(String name)
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.