com.upplication.s3fs.attribute.S3BasicFileAttributeView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3fs Show documentation
Show all versions of s3fs Show documentation
S3 filesystem provider for Java 7
package com.upplication.s3fs.attribute;
import com.upplication.s3fs.S3Path;
import java.io.IOException;
import java.nio.file.attribute.BasicFileAttributeView;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
public class S3BasicFileAttributeView implements BasicFileAttributeView {
private S3Path s3Path;
public S3BasicFileAttributeView(S3Path s3Path) {
this.s3Path = s3Path;
}
@Override
public String name() {
return "basic";
}
@Override
public BasicFileAttributes readAttributes() throws IOException {
return s3Path.getFileSystem().provider().readAttributes(s3Path, BasicFileAttributes.class);
}
@Override
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException {
// not implemented
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy