Interface StreamService

All Superinterfaces:
Remote
All Known Implementing Classes:
StreamServiceImpl

public interface StreamService extends Remote
The StreamServer's RMI service.
Author:
Christian Kohlschütter
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.newsclub.net.unix.rmi.RemoteCloseable<org.newsclub.net.unix.rmi.RemoteFileInput>
    Opens the given file for reading.
    org.newsclub.net.unix.rmi.RemoteCloseable<org.newsclub.net.unix.rmi.RemoteFileOutput>
    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.