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
IOException
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
public void setName(String name)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.