Class FileTypeFactory.FileTypeChooser

  • Enclosing class:
    FileTypeFactory

    public static class FileTypeFactory.FileTypeChooser
    extends java.lang.Object
    A FileTypeChooser selects single entry if multiple valid entries are found in a compressed file, e.g. multiple .cr files in a .zip file.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileTypeChooser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.zip.ZipEntry chooseZipEntry​(java.util.zip.ZipEntry[] entries)
      Selects a ZipEntry.
      • Methods inherited from class java.lang.Object

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

      • FileTypeChooser

        public FileTypeChooser()
    • Method Detail

      • chooseZipEntry

        public java.util.zip.ZipEntry chooseZipEntry​(java.util.zip.ZipEntry[] entries)
        Selects a ZipEntry.
        Parameters:
        entries - an array of ZipEntry objects
        Returns:
        the selected ZipEntry or null if none have been selected.