public interface ScpSourceStreamResolver
| Modifier and Type | Method and Description |
|---|---|
Path |
getEventListenerFilePath() |
String |
getFileName() |
Collection<PosixFilePermission> |
getPermissions() |
long |
getSize() |
ScpTimestamp |
getTimestamp() |
InputStream |
resolveSourceStream(Session session,
long fileSize,
Set<PosixFilePermission> permissions,
OpenOption... options) |
String getFileName() throws IOException
IOException - If failed to resolve the namePath getEventListenerFilePath()
Path to use when invoking the ScpTransferEventListenerCollection<PosixFilePermission> getPermissions() throws IOException
IOException - If failed to generate the required permissionsScpTimestamp getTimestamp() throws IOException
ScpTimestamp to use for uploading the file
if null then no need to send this informationIOException - If failed to generate the required datalong getSize()
throws IOException
IOException - If failed to generate an estimateInputStream resolveSourceStream(Session session, long fileSize, Set<PosixFilePermission> permissions, OpenOption... options) throws IOException
session - The Session through which file is transmittedfileSize - The expected transfer byte countpermissions - The requested file permissionsoptions - The OpenOptions may be null/emptyInputStream containing the data to be uploadedIOException - If failed to create the streamCopyright © 2018–2019 The Apache Software Foundation. All rights reserved.