Package org.apache.sis.storage
Interface StorageConnector.Opener<S>
- Type Parameters:
S
- the type of input (source) created by thisOpener
instance.
- Enclosing class:
- StorageConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler to
StorageConnector.createFoo()
methods associated to given storage types.
Each createFoo()
method may be invoked once for opening an input stream, character
reader, database connection, etc from user supplied path, URI, etc.-
Method Summary
Modifier and TypeMethodDescriptionInvoked when first needed for creating an input of the requested type.
-
Method Details
-
open
Invoked when first needed for creating an input of the requested type. This method should invokeStorageConnector.addView(Class, Object, Class, byte)
for caching the result before to return the view.- Throws:
Exception
-