Module org.newsclub.net.unix.demo
Interface StreamService
- All Superinterfaces:
Remote
- All Known Implementing Classes:
StreamServiceImpl
The
StreamServer
's RMI service.- Author:
- Christian Kohlschütter
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.newsclub.net.unix.rmi.RemoteCloseable
<org.newsclub.net.unix.rmi.RemoteFileInput> openForReading
(File path) Opens the given file for reading.org.newsclub.net.unix.rmi.RemoteCloseable
<org.newsclub.net.unix.rmi.RemoteFileOutput> openForWriting
(File path) Opens the given file for writing.
-
Method Details
-
openForReading
org.newsclub.net.unix.rmi.RemoteCloseable<org.newsclub.net.unix.rmi.RemoteFileInput> openForReading(File path) throws IOException Opens the given file for reading.- Parameters:
path
- The file to open.- Returns:
- A remote instance for the file.
- Throws:
IOException
- on error.
-
openForWriting
org.newsclub.net.unix.rmi.RemoteCloseable<org.newsclub.net.unix.rmi.RemoteFileOutput> openForWriting(File path) throws IOException Opens the given file for writing.- Parameters:
path
- The file to open.- Returns:
- A remote instance for the file.
- Throws:
IOException
- on error.
-