Class DefaultInputResource
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultInputResource
- All Implemented Interfaces:
InputResource, Proxyable, Resource
The Class DefaultInputResource.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultInputResource(ResourceType<? extends InputResource> type, Instant asOf, InputStream inputStream) Initializes a new default input resource. -
Method Summary
Modifier and TypeMethodDescriptionasOf()The instant at which this resource was created or last modified.Returns the input stream.Methods inherited from interface Resource
asOfLocalized, cleanup, isNewerThan, name, type
-
Constructor Details
-
DefaultInputResource
public DefaultInputResource(ResourceType<? extends InputResource> type, Instant asOf, InputStream inputStream) Initializes a new default input resource.- Parameters:
type- the typeasOf- the as ofinputStream- the input stream
-
-
Method Details
-
asOf
-
inputStream
Description copied from interface:InputResourceReturns the input stream.- Specified by:
inputStreamin interfaceInputResource- Returns:
- the input stream
-