Class RemoteArchive

java.lang.Object
org.openrewrite.remote.RemoteArchive
All Implemented Interfaces:
Remote, SourceFile, Tree

public class RemoteArchive extends Object implements Remote
Represents a source to be extracted from within an archive hosted at a remote URI. If you want to download and retain the entire archive, use RemoteFile. Useful when a Recipe wishes to create a SourceFile based on something specific from within a remote archive, but not the entire archive.

Downloading and extracting the correct file from within the archive are not handled during Recipe execution. Post-processing of Recipe results by a build plugin or other caller of OpenRewrite is responsible for this.

  • Constructor Details

    • RemoteArchive

      public RemoteArchive()
  • Method Details

    • getInputStream

      public InputStream getInputStream(ExecutionContext ctx)
      Description copied from interface: Remote
      Download the remote file
      Specified by:
      getInputStream in interface Remote
      Parameters:
      ctx - used to download the file represented by this Remote