Interface DataHandlerProvider
-
public interface DataHandlerProviderInterface used for deferred loading of binary content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataHandlergetDataHandler()Get theDataHandlerobject for the binary content.booleanisLoaded()Check whether theDataHandlerhas already been loaded.
-
-
-
Method Detail
-
isLoaded
boolean isLoaded()
Check whether theDataHandlerhas already been loaded. A return value oftruemeans that a call togetDataHandler()will not block or will retrieve theDataHandlerwithout overhead. Note the return value of this method for a given instance of this class may change over time due to events other than a call togetDataHandler()on the same instance. E.g. a call togetDataHandler()on one instance may change the return value of the method on another instance (because theDataHandlerobjects can only be loaded in a certain sequence).- Returns:
trueif theDataHandlerhas already been loaded;falseotherwise
-
getDataHandler
DataHandler getDataHandler() throws IOException
Get theDataHandlerobject for the binary content.- Returns:
- the binary content
- Throws:
IOException- if an error occurs while loading theDataHandler
-
-