Interface StreamDataStore

All Superinterfaces:
DataStore
All Known Subinterfaces:
KnownFormatStreamDataStore
All Known Implementing Classes:
InputStreamStore, OutputStreamStore, StdinDataStore, StdoutDataStore

public interface StreamDataStore extends DataStore
A data store that can be accessed using InputStreams and/or OutputStreams.
  • Method Details

    • getFlow

      default DataFlow getFlow()
    • canOpen

      default boolean canOpen()
      Checks whether this store can be opened. This can be not the case for example if the underlying store does not exist.
    • isContentExclusivelyAccessible

      default boolean isContentExclusivelyAccessible()
      Indicates whether this data store can only be accessed by the current running application. One example are standard in and standard out stores.
      See Also:
    • openInput

      default InputStream openInput()
      Opens an input stream that can be used to read its data.
    • openBufferedInput

      default InputStream openBufferedInput() throws Exception
      Opens an input stream that is guaranteed to be buffered.
      Throws:
      Exception
    • openOutput

      default OutputStream openOutput()
      Opens an output stream that can be used to write data.