public interface DataHandleService extends WrapperService<Location,DataHandle<Location>>, SciJavaService
DataHandles.| Modifier and Type | Method and Description |
|---|---|
default boolean |
exists(Location location)
Convenience method to test whether it describes an existing file.
|
default Class<DataHandle<Location>> |
getPluginType()
Gets the type of plugins managed by this service.
|
default Class<Location> |
getType()
Gets the type associated with the object.
|
default DataHandle<Location> |
readBuffer(DataHandle<Location> handle)
Wraps the provided
DataHandle in a read-only buffer for accelerated
reading. |
default DataHandle<Location> |
readBuffer(Location location)
Creates a
DataHandle on the provided Location wrapped in a
read-only buffer for accelerated reading. |
default DataHandle<Location> |
writeBuffer(DataHandle<Location> handle)
Wraps the provided
DataHandle in a write-only buffer for
accelerated writing. |
create, initialize, supportsfindcreate, getPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposedefault Class<DataHandle<Location>> getPluginType()
PTServicegetPluginType in interface PTService<DataHandle<Location>>default Class<Location> getType()
Typeddefault boolean exists(Location location) throws IOException
location - the location to testDataHandle.exists() on a newly created handle
on this location. Also returns false if the handle can not
be created.IOException - if the creation of the handle fails exceptionallydefault DataHandle<Location> readBuffer(DataHandle<Location> handle)
DataHandle in a read-only buffer for accelerated
reading.handle - the handle to wrapnull if the
input handle is nullReadBufferDataHandle(DataHandle)default DataHandle<Location> readBuffer(Location location)
DataHandle on the provided Location wrapped in a
read-only buffer for accelerated reading.location - the Location to create a buffered handle on.DataHandle on the provided location wrapped in a
read-only buffer, or null if no handle could be created for
the location.ReadBufferDataHandle(DataHandle)default DataHandle<Location> writeBuffer(DataHandle<Location> handle)
DataHandle in a write-only buffer for
accelerated writing.handle - the handle to wrapnull if the
provided handle is nullWriteBufferDataHandle(DataHandle)Copyright © 2015–2022 SciJava. All rights reserved.