@Deprecated public abstract class ZipFileComment extends Object
Constructor and Description |
---|
ZipFileComment()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
getComment(File file,
int max)
Deprecated.
|
static String |
getComment(File file,
int max,
int skip)
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
public static String getComment(File file, int max) throws IOException
max
- The max length of the comment in bytes.
If the actual comment is longer, it will not be found and
this method will throw an IOEIOException
- if no valid end-of-central-directory record foundpublic static String getComment(File file, int max, int skip) throws IOException
max
- The max length of the comment in bytes.
If the actual comment is longer, it will not be found and
this method will throw an IOEskip
- Number of bytes to skip in the file before looking for the
zip header. Use 56 for sud/su2 files.IOException
- if no valid end-of-central-directory record foundpublic static void main(String[] args) throws IOException
IOException