- All Superinterfaces:
DataStore
- All Known Subinterfaces:
KnownFormatStreamDataStore
- All Known Implementing Classes:
FileStore,InMemoryStore,InputStreamStore,OutputStreamStore,StdinDataStore,StdoutDataStore
A data store that can be accessed using InputStreams and/or OutputStreams.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanOpen()Checks whether this store can be opened.default DataFlowgetFlow()default booleanIndicates whether this data store can only be accessed by the current running application.default InputStreamOpens an input stream that is guaranteed to be buffered.default InputStreamOpens an input stream that can be used to read its data.default OutputStreamOpens an output stream that can be used to write data.Methods inherited from interface io.xpipe.core.store.DataStore
asNeeded, checkComplete, isComplete, isInStorage
-
Method Details
-
getFlow
-
canOpen
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
Opens an input stream that can be used to read its data.- Throws:
Exception
-
openBufferedInput
Opens an input stream that is guaranteed to be buffered.- Throws:
Exception
-
openOutput
Opens an output stream that can be used to write data.- Throws:
Exception
-