java.lang.Object
io.xpipe.core.util.JacksonizedValue
io.xpipe.core.impl.FileStore
- All Implemented Interfaces:
DataStore,FilenameStore,StreamDataStore
Represents a file located on a file system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanOpen()Checks whether this store can be opened.voidfinal booleanisLocal()static FileStoreCreates a file store for a file that is local to the callers machine.static FileStoreOpens an input stream that can be used to read its data.Opens an output stream that can be used to write data.Methods inherited from class io.xpipe.core.util.JacksonizedValue
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.xpipe.core.store.DataStore
asNeeded, delete, determineLastModified, getFlow, isComplete, isContentExclusivelyAccessible, shouldPersist, shouldSave, validateMethods inherited from interface io.xpipe.core.store.FilenameStore
determineDefaultName, getFileExtensionMethods inherited from interface io.xpipe.core.store.StreamDataStore
openBufferedInput
-
Constructor Details
-
FileStore
-
-
Method Details
-
local
-
local
Creates a file store for a file that is local to the callers machine. -
getParent
-
isLocal
public final boolean isLocal() -
checkComplete
- Specified by:
checkCompletein interfaceDataStore- Throws:
Exception
-
openInput
Description copied from interface:StreamDataStoreOpens an input stream that can be used to read its data.- Specified by:
openInputin interfaceStreamDataStore- Throws:
Exception
-
openOutput
Description copied from interface:StreamDataStoreOpens an output stream that can be used to write data.- Specified by:
openOutputin interfaceStreamDataStore- Throws:
Exception
-
canOpen
Description copied from interface:DataStoreChecks whether this store can be opened. This can be not the case for example if the underlying store does not exist. -
getFileName
- Specified by:
getFileNamein interfaceFilenameStore
-