Lines Matching defs:comment
48 String comment = buildComment(commentLength);
50 writeZipFile(name, comment);
51 verifyZipFile(name, comment);
57 private static void writeZipFile(String name, String comment)
63 zos.setComment(comment);
72 private static void verifyZipFile(String name, String comment)
85 // Check that comment length was correctly written.
86 file.seek(file.length() - comment.length()
90 if (b1 + (b2 << 8) != comment.length())
91 throw new Exception("Zip file comment length corrupted");
93 // Check that comment was correctly written.
94 file.seek(file.length() - comment.length());
95 byte [] bytes = new byte [comment.length()];
97 if (! comment.equals(new String(bytes, "UTF8")))
98 throw new Exception("Zip file comment corrupted");