public interface ScpFileOpener
| Modifier and Type | Method and Description |
|---|---|
InputStream |
openRead(Session session,
Path file,
OpenOption... options)
Create an input stream to read from a file
|
OutputStream |
openWrite(Session session,
Path file,
OpenOption... options)
Create an output stream to write to a file
|
InputStream openRead(Session session, Path file, OpenOption... options) throws IOException
session - The Session requesting the accessfile - The requested local file Pathoptions - The OpenOptions - may be null/emptyInputStream never nullIOException - If failed to open the fileOutputStream openWrite(Session session, Path file, OpenOption... options) throws IOException
session - The Session requesting the accessfile - The requested local file Pathoptions - The OpenOptions - may be null/emptyOutputStream never nullIOException - If failed to open the fileCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.