Lines Matching refs:file
12 * version 2 for more details (a copy is included in the LICENSE file that
26 @summary Make sure zip file comments of various sizes can be written.
84 try (RandomAccessFile file = new RandomAccessFile(name, "r")) {
86 file.seek(file.length() - comment.length()
88 int b1 = file.readUnsignedByte();
89 int b2 = file.readUnsignedByte();
91 throw new Exception("Zip file comment length corrupted");
94 file.seek(file.length() - comment.length());
96 file.readFully(bytes);
98 throw new Exception("Zip file comment corrupted");