Package org.dict.zip

Class DictZipFileUtils


  • public final class DictZipFileUtils
    extends Object
    Created by Hiroshi Miura on 16/04/09.
    • Method Detail

      • checkDictZipInputStream

        public static boolean checkDictZipInputStream​(String filename)
                                               throws IOException
        Check gzip member stream w/ CRC and length in trailer.
        Parameters:
        filename - to be checked.
        Returns:
        true if it is a valid dictzip file, otherwise false.
        Throws:
        IOException - when CRC error or total length error.
      • checkDictZipInputStream

        public static boolean checkDictZipInputStream​(DictZipInputStream in)
                                               throws IOException
        Check gzip member stream w/ CRC and length in trailer.
        Parameters:
        in - inputstream to be checked.
        Returns:
        true if inputstream is a valid dictzip, otherwise false.
        Throws:
        IOException - when CRC error or total length error.