Package org.openrewrite.remote
Class RemoteFile
java.lang.Object
org.openrewrite.remote.RemoteFile
- All Implemented Interfaces:
Remote
,SourceFile
,Tree
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openrewrite.remote.Remote
Remote.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(HttpSender httpSender) Download the remote file<P> byte[]
printAllAsBytes
(P p) Methods 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, printAllTrimmed, 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
-
RemoteFile
public RemoteFile()
-
-
Method Details
-
printAllAsBytes
public <P> byte[] printAllAsBytes(P p) - Specified by:
printAllAsBytes
in interfaceSourceFile
-
getInputStream
Description copied from interface:Remote
Download the remote file- Specified by:
getInputStream
in interfaceRemote
- Parameters:
httpSender
- used to download the file represented by this Remote
-