Package org.dict.zip
Class DictZipFileUtils
- java.lang.Object
-
- org.dict.zip.DictZipFileUtils
-
public final class DictZipFileUtils extends Object
Created by Hiroshi Miura on 16/04/09.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckDictZipInputStream(String filename)Check gzip member stream w/ CRC and length in trailer.static booleancheckDictZipInputStream(DictZipInputStream in)Check gzip member stream w/ CRC and length in trailer.
-
-
-
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.
-
-