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()
DataResource
getInputStream
in interface DataResource
public Class<?> getCls()
DataResource
getCls
in interface DataResource
public void setCls(Class<?> cls)
DataResource
setCls
in interface DataResource
public String getType()
DataResource
getType
in interface DataResource
Copyright © 2016 PayPal Open Source. All rights reserved.