Interface InputResource
- All Superinterfaces:
Resource
- All Known Subinterfaces:
AppJarFile, ClassFile, FileResource, IOResource, JarFile, JavadocJarFile, JavaSourceFile, LibraryJarFile, MvnRepoJarFile, MvnRepoLibraryJarFile, PomFile, ResourceFile, SourcesJarFile, VscodeConfiguration, ZipFile
- All Known Implementing Classes:
DefaultFileResource, DefaultInputResource, DefaultJarFile, DefaultLibraryJarFile, JarFileEntry, ServicesEntryResource
Represents a resource that has readable contents.
Implementations of this interface must provide a ResourceFactory
that supports the invocation of ResourceFactory.create(ResourceType, Project, Object...) with
arguments
Instantthe modification timeInputStreamthe input stream
-
Method Summary
Modifier and TypeMethodDescriptionReturns the input stream.static InputResourceof(Instant asOf, InputStream inputData) Creates a new input resource.Methods inherited from interface Resource
asOf, asOfLocalized, cleanup, isNewerThan, name, type
-
Method Details
-
inputStream
-
of
Creates a new input resource.- Parameters:
asOf- the modification dateinputData- the data- Returns:
- the file resource
-