APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.nio.zipfs

pack-priv Class ZipPosixFileAttributeView

extends ZipFileAttributeView
implements PosixFileAttributeView
Class Inheritance
All Implemented Interfaces
java.nio.file.attribute.PosixFileAttributeView, java.nio.file.attribute.FileOwnerAttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.AttributeView, java.nio.file.attribute.BasicFileAttributeView
Imports
java.io.IOException, java.nio.file.attribute.GroupPrincipal, .PosixFileAttributeView, .PosixFileAttributes, .UserPrincipal

The zip file system attribute view with POSIX support.

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from jdk.nio.zipfs.ZipFileAttributeView:
path

Constructor Summary

AccessConstructor and Description
pack-priv
ZipPosixFileAttributeView(ZipPath path, boolean owner)

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
public UserPrincipal
public String
public PosixFileAttributes
public void
public void
Inherited from jdk.nio.zipfs.ZipFileAttributeView:
readAttributessetAttributesetPermissionssetTimes

Field Detail

isOwnerViewback to summary
private final boolean isOwnerView

Constructor Detail

ZipPosixFileAttributeViewback to summary
pack-priv ZipPosixFileAttributeView(ZipPath path, boolean owner)

Method Detail

attributeback to summary
pack-priv Object attribute(ZipFileAttributeView.AttrID id, ZipFileAttributes zfas)

Overrides jdk.nio.zipfs.ZipFileAttributeView.attribute.

Annotations
@Override
getOwnerback to summary
public UserPrincipal getOwner() throws IOException

Implements java.nio.file.attribute.FileOwnerAttributeView.getOwner.

Doc from java.nio.file.attribute.FileOwnerAttributeView.getOwner.

Read the file owner.

It is implementation specific if the file owner can be a group.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
nameback to summary
public String name()

Overrides jdk.nio.zipfs.ZipFileAttributeView.name.

Implements java.nio.file.attribute.PosixFileAttributeView.name, java.nio.file.attribute.BasicFileAttributeView.name.

Doc from java.nio.file.attribute.PosixFileAttributeView.name.

Returns the name of the attribute view. Attribute views of this type have the name "posix".

Annotations
@Override
readAttributesback to summary
public PosixFileAttributes readAttributes() throws IOException

Overrides jdk.nio.zipfs.ZipFileAttributeView.readAttributes.

Implements java.nio.file.attribute.PosixFileAttributeView.readAttributes, java.nio.file.attribute.BasicFileAttributeView.readAttributes.

Doc from java.nio.file.attribute.BasicFileAttributeView.readAttributes.

Reads the basic file attributes as a bulk operation.

It is implementation specific if all file attributes are read as an atomic operation with respect to other file system operations.

Annotations
@Override
Exceptions
IOException:

Doc from java.nio.file.attribute.PosixFileAttributeView.readAttributes.

if an I/O error occurs

setGroupback to summary
public void setGroup(GroupPrincipal group) throws IOException

Implements java.nio.file.attribute.PosixFileAttributeView.setGroup.

Doc from java.nio.file.attribute.PosixFileAttributeView.setGroup.

Updates the file group-owner.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
setOwnerback to summary
public void setOwner(UserPrincipal owner) throws IOException

Implements java.nio.file.attribute.FileOwnerAttributeView.setOwner.

Doc from java.nio.file.attribute.FileOwnerAttributeView.setOwner.

Updates the file owner.

It is implementation specific if the file owner can be a group. To ensure consistent and correct behavior across platforms it is recommended that this method should only be used to set the file owner to a user principal that is not a group.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs, or the owner parameter is a group and this implementation does not support setting the owner to a group