< prev index next >
src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileAttributes.java
Print this page
rev 52310 : 8213031: (zipfs) Add support for POSIX file permissions
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,20 +23,23 @@
* questions.
*/
package jdk.nio.zipfs;
-import java.nio.file.attribute.BasicFileAttributes;
+import java.nio.file.attribute.PosixFileAttributes;
+import java.nio.file.attribute.PosixFilePermission;
+import java.util.Set;
/**
+ * The attributes of a file stored in a zip file.
*
- * @author Xueming Shen, Rajendra Gutupalli,Jaya Hangal
+ * @author Xueming Shen, Rajendra Gutupalli, Jaya Hangal
*/
-
-interface ZipFileAttributes extends BasicFileAttributes {
+interface ZipFileAttributes extends PosixFileAttributes {
public long compressedSize();
public long crc();
public int method();
public byte[] extra();
public byte[] comment();
public String toString();
+ public void setPermissions(Set<PosixFilePermission> perms);
}
< prev index next >