Package org.openrewrite.remote
Class RemoteArchive
java.lang.Object
org.openrewrite.remote.RemoteArchive
- All Implemented Interfaces:
Remote
,SourceFile
,Tree
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openrewrite.remote.Remote
Remote.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDownload the remote fileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openrewrite.remote.Remote
accept, getChecksum, getDescription, getUri, isAcceptable, printAll, printAllTrimmed, printer, withChecksum, withDescription, withUri
Methods inherited from interface org.openrewrite.SourceFile
getCharset, getFileAttributes, getSourcePath, getStyle, getStyle, getWeight, isCharsetBomMarked, printAll, printAll, printAllAsBytes, printAllAsBytes, printAllTrimmed, printEqualsInput, withCharset, withCharsetBomMarked, withFileAttributes, withSourcePath
Methods inherited from interface org.openrewrite.Tree
cast, getId, getJacksonPolymorphicTypeTag, getMarkers, isScope, print, print, print, printTrimmed, printTrimmed, printTrimmed, safeCast, withId, withMarkers
-
Constructor Details
-
RemoteArchive
public RemoteArchive()
-
-
Method Details
-
getInputStream
Description copied from interface:Remote
Download the remote file- Specified by:
getInputStream
in interfaceRemote
- Parameters:
ctx
- used to download the file represented by this Remote
-