< 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 ****
/*
! * Copyright (c) 2009, 2014, 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
--- 1,7 ----
/*
! * 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,42 ****
* questions.
*/
package jdk.nio.zipfs;
! import java.nio.file.attribute.BasicFileAttributes;
/**
*
! * @author Xueming Shen, Rajendra Gutupalli,Jaya Hangal
*/
!
! interface ZipFileAttributes extends BasicFileAttributes {
public long compressedSize();
public long crc();
public int method();
public byte[] extra();
public byte[] comment();
public String toString();
}
--- 23,45 ----
* questions.
*/
package jdk.nio.zipfs;
! 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
*/
! 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 >