@NotThreadSafe public class InputStreamDataSource extends Object implements IExtendedDataSource, com.helger.commons.io.IHasInputStream
DataSource implementation based on data from
InputStream.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_READ_MULTIPLE |
DEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
InputStreamDataSource(InputStream aIS,
String sName) |
InputStreamDataSource(InputStream aIS,
String sName,
boolean bReadMultiple) |
InputStreamDataSource(InputStream aIS,
String sName,
com.helger.commons.mime.IMimeType aContentType) |
InputStreamDataSource(InputStream aIS,
String sName,
com.helger.commons.mime.IMimeType aContentType,
boolean bReadMultiple) |
InputStreamDataSource(InputStream aIS,
String sName,
String sContentType) |
InputStreamDataSource(InputStream aIS,
String sName,
String sContentType,
boolean bReadMultiple) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
int |
getISAcquisitionCount() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isReadMultiple() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsDataHandler, getEncodingAwarepublic static final boolean DEFAULT_READ_MULTIPLE
public InputStreamDataSource(@Nonnull InputStream aIS, @Nonnull String sName)
public InputStreamDataSource(@Nonnull InputStream aIS, @Nonnull String sName, boolean bReadMultiple)
public InputStreamDataSource(@Nonnull InputStream aIS, @Nonnull String sName, @Nullable com.helger.commons.mime.IMimeType aContentType, boolean bReadMultiple)
public InputStreamDataSource(@Nonnull InputStream aIS, @Nonnull String sName, @Nullable com.helger.commons.mime.IMimeType aContentType)
public InputStreamDataSource(@Nonnull InputStream aIS, @Nonnull String sName, @Nullable String sContentType)
public final boolean isReadMultiple()
isReadMultiple in interface com.helger.commons.io.IHasInputStream@Nonnegative public final int getISAcquisitionCount()
@Nonnull public InputStream getInputStream()
getInputStream in interface com.helger.commons.io.IHasInputStreamgetInputStream 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.