Interface StreamDataStore

All Superinterfaces:
DataStore
All Known Subinterfaces:
KnownFormatStreamDataStore
All Known Implementing Classes:
FileStore, InMemoryStore, 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() throws Exception
      Checks whether this store can be opened. This can be not the case for example if the underlying store does not exist.
      Throws:
      Exception
    • 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() throws Exception
      Opens an input stream that can be used to read its data.
      Throws:
      Exception
    • openBufferedInput

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

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