Ce contenu n'est pas disponible dans la langue sélectionnée.
8.4. Extension Hooks
It is easy to extend VFS with a new protocol, similar to what we've done with
Assembled and Memory. All you need is a combination of VFSContexFactory, VFSContext, VirtualFileHandler, FileHandlerPlugin, and URLStreamHandler implementations. The VFSContextFactory is trivial, while the others depend on the complexity of your task. You could implement rar, tar, gzip, or even remote access.
After implementing a new protocol, register the new VFSContextFactory with VFSContextFactoryLocator.