public class SftpFileArchiveInputStream extends FileInputStream
Constructor and Description |
---|
SftpFileArchiveInputStream(File file,
File archiveFile,
SftpInputStream sftpInputStream) |
SftpFileArchiveInputStream(File file,
SftpInputStream remoteStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isClosed() |
void |
performPostProcessingOnClose(boolean postProcessOnClose)
Specifies if
postProcess() should be executed when the stream is closed |
void |
postProcess()
Executes post processing actions like closing connections,
deleting/moving files, etc...
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setErrorOccurred() |
available, finalize, getChannel, getFD, skip
mark, markSupported, reset
public SftpFileArchiveInputStream(File file, SftpInputStream remoteStream) throws FileNotFoundException
FileNotFoundException
public SftpFileArchiveInputStream(File file, File archiveFile, SftpInputStream sftpInputStream) throws FileNotFoundException
FileNotFoundException
public int read() throws IOException
read
in class FileInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FileInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FileInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileInputStream
IOException
public boolean isClosed()
public void postProcess() throws Exception
Exception
public void setErrorOccurred()
public void performPostProcessingOnClose(boolean postProcessOnClose)
postProcess()
should be executed when the stream is closedpostProcessOnClose
- a boolean
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.