public class LocalFileScpSourceStreamResolver extends AbstractLoggingBean implements ScpSourceStreamResolver
log| Constructor and Description |
|---|
LocalFileScpSourceStreamResolver(Path path) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getEventListenerFilePath() |
String |
getFileName() |
Collection<PosixFilePermission> |
getPermissions() |
long |
getSize() |
ScpTimestamp |
getTimestamp() |
InputStream |
resolveSourceStream() |
String |
toString() |
public LocalFileScpSourceStreamResolver(Path path) throws IOException
IOExceptionpublic String getFileName() throws IOException
getFileName in interface ScpSourceStreamResolverIOException - If failed to resolve the namepublic Collection<PosixFilePermission> getPermissions() throws IOException
getPermissions in interface ScpSourceStreamResolverIOException - If failed to generate the required permissionspublic ScpTimestamp getTimestamp() throws IOException
getTimestamp in interface ScpSourceStreamResolverScpTimestamp to use for uploading the file
if null then no need to send this informationIOException - If failed to generate the required datapublic long getSize()
throws IOException
getSize in interface ScpSourceStreamResolverIOException - If failed to generate an estimatepublic Path getEventListenerFilePath()
getEventListenerFilePath in interface ScpSourceStreamResolverPath to use when invoking the ScpTransferEventListenerpublic InputStream resolveSourceStream() throws IOException
resolveSourceStream in interface ScpSourceStreamResolverInputStream containing the data to be uploadedIOException - If failed to create the streamCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.