public class InputStreamResource extends Object implements DataResource
| Constructor and Description |
|---|
InputStreamResource(InputStream stream,
Class<?> cls,
String type) |
InputStreamResource(InputStream stream,
String type) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCls()
Fetch the user defined POJO class
|
InputStream |
getInputStream()
Load the input stream of the data file
|
String |
getType()
Fetch the data file extension
|
void |
setCls(Class<?> cls)
Set the user defined POJO class to map data
|
public InputStreamResource(InputStream stream, Class<?> cls, String type)
public InputStreamResource(InputStream stream, String type)
public InputStream getInputStream()
DataResourcegetInputStream in interface DataResourcepublic Class<?> getCls()
DataResourcegetCls in interface DataResourcepublic void setCls(Class<?> cls)
DataResourcesetCls in interface DataResourcepublic String getType()
DataResourcegetType in interface DataResourceCopyright © 2016 PayPal Open Source. All rights reserved.