public class RemoteFileServer extends Object
| Constructor and Description |
|---|
RemoteFileServer(String descName,
String mountPoint)
Create an instance of a remote file server with a given cache name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection to the underlying FileSystem.
|
BufferedWriter |
getBufferedWriter(Path path,
OpenOption... options)
Get an BufferedWriter for writing data for a given Path and OpenOptions.
|
FileSystem |
getFileSystem()
Get the underlying FileSystem.
|
InputStream |
getInputStream(Path path,
OpenOption... options)
Get an InputStream for reading data for a given Path and OpenOptions.
|
public InputStream getInputStream(Path path, OpenOption... options) throws IOException
path - The Path of the file to open.options - The OpenOption array to open the file with.IOExceptionpublic BufferedWriter getBufferedWriter(Path path, OpenOption... options) throws IOException
path - The Path of the file to open.options - The OpenOption array to open the file with.IOExceptionpublic FileSystem getFileSystem()
public void close()
Copyright © 2022 LSST. All rights reserved.