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
IOException
public String getFileName() throws IOException
getFileName
in interface ScpSourceStreamResolver
IOException
- If failed to resolve the namepublic Collection<PosixFilePermission> getPermissions() throws IOException
getPermissions
in interface ScpSourceStreamResolver
IOException
- If failed to generate the required permissionspublic ScpTimestamp getTimestamp() throws IOException
getTimestamp
in interface ScpSourceStreamResolver
ScpTimestamp
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 ScpSourceStreamResolver
IOException
- If failed to generate an estimatepublic Path getEventListenerFilePath()
getEventListenerFilePath
in interface ScpSourceStreamResolver
Path
to use when invoking the ScpTransferEventListener
public InputStream resolveSourceStream() throws IOException
resolveSourceStream
in interface ScpSourceStreamResolver
InputStream
containing the data to be uploadedIOException
- If failed to create the streamCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.