public static class DataSourceProvider.ByteArrayDataSource extends Object implements 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 DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic void setName(String name)
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.