org.mule.transport.sftp
Class SftpFileArchiveInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
org.mule.transport.sftp.SftpFileArchiveInputStream
- All Implemented Interfaces:
- Closeable, ErrorOccurredDecorator
public class SftpFileArchiveInputStream
- extends FileInputStream
- implements ErrorOccurredDecorator
Ensures that the file is moved to the archiveFile folder after a successful
consumption of the file
- Author:
- Magnus Larsson
SftpFileArchiveInputStream
public SftpFileArchiveInputStream(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
SftpFileArchiveInputStream
public SftpFileArchiveInputStream(File file,
File archiveFile)
throws FileNotFoundException
- Throws:
FileNotFoundException
read
public int read()
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FileInputStream
- Throws:
IOException
setErrorOccurred
public void setErrorOccurred()
- Specified by:
setErrorOccurred
in interface ErrorOccurredDecorator
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.