Class ArchiverFactoryImpl

  • All Implemented Interfaces:
    ArchiverFactory

    public class ArchiverFactoryImpl
    extends java.lang.Object
    implements ArchiverFactory
    Factory that builds/provides archivers using an internal map based on filename extensions.
    Since:
    1.1.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Archiver> get​(java.lang.String extension)
      Gets an archiver capable to process the given file extension.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArchiverFactoryImpl

        public ArchiverFactoryImpl()
    • Method Detail

      • get

        public java.util.Optional<Archiver> get​(java.lang.String extension)
        Description copied from interface: ArchiverFactory
        Gets an archiver capable to process the given file extension.
        Specified by:
        get in interface ArchiverFactory
        Parameters:
        extension - File extension.
        Returns:
        Archiver, or null if this type of archive is not supported.