public interface ScpSourceStreamResolver
Modifier and Type | Method and Description |
---|---|
Path |
getEventListenerFilePath() |
String |
getFileName() |
Collection<PosixFilePermission> |
getPermissions() |
long |
getSize() |
ScpTimestamp |
getTimestamp() |
InputStream |
resolveSourceStream() |
String getFileName() throws IOException
IOException
- If failed to resolve the namePath getEventListenerFilePath()
Path
to use when invoking the ScpTransferEventListener
Collection<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() throws IOException
InputStream
containing the data to be uploadedIOException
- If failed to create the streamCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.