public class InputStreamProviderDataSource extends Object implements IExtendedDataSource
DataSource implementation based on data from
IHasInputStream.DEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
InputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP,
String sName) |
InputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP,
String sName,
com.helger.commons.mime.IMimeType aContentType) |
InputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP,
String sName,
String sContentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsDataHandler, getEncodingAwarepublic InputStreamProviderDataSource(@Nonnull com.helger.commons.io.IHasInputStream aISP, @Nonnull String sName)
public InputStreamProviderDataSource(@Nonnull com.helger.commons.io.IHasInputStream aISP, @Nonnull String sName, @Nullable com.helger.commons.mime.IMimeType aContentType)
@Nullable public InputStream getInputStream()
getInputStream in interface DataSource@UnsupportedOperation public OutputStream getOutputStream()
getOutputStream in interface DataSource@Nonnull public String getContentType()
getContentType in interface DataSource@Nonnull public String getName()
getName in interface DataSourceCopyright © 2014–2019 Philip Helger. All rights reserved.