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

public interface InputResource extends Resource

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

  • Method Details

    • inputStream

      Returns the input stream.
      Returns:
      the input stream
    • of

      static InputResource of(Instant asOf, InputStream inputData)
      Creates a new input resource.
      Parameters:
      asOf - the modification date
      inputData - the data
      Returns:
      the file resource