Package com.sshtools.common.sftp
Class SftpFileAttributes.SftpFileAttributesBuilder
java.lang.Object
com.sshtools.common.sftp.SftpFileAttributes.SftpFileAttributesBuilder
- Enclosing class:
- SftpFileAttributes
-
Method Summary
Modifier and TypeMethodDescriptionaddAcls(Collection<ACL> acls) addExtendedAttribute(String key, byte[] value) addExtendedAttributes(Map<String, byte[]> extendedAttributes) asVersion(int version) build()create()withAclFlags(long aclFlags) withAclFlags(com.sshtools.common.util.UnsignedInteger32 aclFlags) withAclFlags(Optional<com.sshtools.common.util.UnsignedInteger32> aclFlags) withAcls(Collection<ACL> acls) withAppendOnly(boolean value) withArchive(boolean value) withAttributeBits(int attributeBits) withAttributeBits(com.sshtools.common.util.UnsignedInteger32 attributeBits) withAttributeBits(Optional<com.sshtools.common.util.UnsignedInteger32> attributeBits) withCaseSensitive(boolean value) withCharsetEncoding(String charsetEncoding) withCharsetEncoding(Charset charsetEncoding) withCharsetEncoding(Optional<String> charsetEncoding) withCompressed(boolean value) withCreateTime(long createTimeMs) withCreateTime(FileTime createTime) withCreateTime(Optional<FileTime> createTime) withEncrypted(boolean value) withExtendedAttributes(Map<String, byte[]> extendedAttributes) withFileAttributes(SftpFileAttributes attributes) withFlags(long flags) withGid(int gid) withGidOrGroup(String attribute) withGidOrGroup(Optional<String> attribute) withHidden(boolean value) withImmutable(boolean value) withLastAccessTime(long atimeMs) withLastAccessTime(FileTime atime) withLastAccessTime(Optional<FileTime> atime) withLastModifiedTime(long lastModifiedTimeMs) withLastModifiedTime(FileTime lastModifiedTime) withLastModifiedTime(Optional<FileTime> lastModifiedTime) withPermissions(PosixPermissions permissions) withPermissions(PosixFilePermission... permissions) withPermissions(Collection<PosixFilePermission> permissions) withPermissions(Optional<PosixPermissions> permissions) withReadOnly(boolean value) withSize(long size) withSize(com.sshtools.common.util.UnsignedInteger64 size) withSparse(boolean value) withSubSecondsTimes(boolean subSecondTimes) withSupportedAttributeBits(long supportedAttributeBits) withSupportedAttributeBits(Optional<Long> supportedAttributeBits) withSupportedAttributeMask(long supportedAttributeMask) withSupportedAttributeMask(Optional<Long> supportedAttributeMask) withSync(boolean value) withSystem(boolean value) withType(int type) withUid(int uid) withUidOrUsername(String attribute) withUidOrUsername(Optional<String> attribute) withUsername(String username) withUsername(Optional<String> username)
-
Method Details
-
create
-
ofType
-
of
public static SftpFileAttributes.SftpFileAttributesBuilder of(com.sshtools.common.util.ByteArrayReader bar, int version, String charsetEncoding) throws IOException - Throws:
IOException
-
addAcls
-
addAcls
-
addExtendedAttribute
-
addExtendedAttributes
public SftpFileAttributes.SftpFileAttributesBuilder addExtendedAttributes(Map<String, byte[]> extendedAttributes) -
asVersion
-
build
-
removeExtendedAttribute
-
withAclFlags
-
withAclFlags
public SftpFileAttributes.SftpFileAttributesBuilder withAclFlags(Optional<com.sshtools.common.util.UnsignedInteger32> aclFlags) -
withAclFlags
public SftpFileAttributes.SftpFileAttributesBuilder withAclFlags(com.sshtools.common.util.UnsignedInteger32 aclFlags) -
withAcls
-
withAcls
-
withAppendOnly
-
withArchive
-
withAttributeBits
-
withAttributeBits
public SftpFileAttributes.SftpFileAttributesBuilder withAttributeBits(Optional<com.sshtools.common.util.UnsignedInteger32> attributeBits) -
withAttributeBits
public SftpFileAttributes.SftpFileAttributesBuilder withAttributeBits(com.sshtools.common.util.UnsignedInteger32 attributeBits) -
withCaseSensitive
-
withCharsetEncoding
-
withCharsetEncoding
public SftpFileAttributes.SftpFileAttributesBuilder withCharsetEncoding(Optional<String> charsetEncoding) -
withCharsetEncoding
-
withCompressed
-
withCreateTime
-
withCreateTime
-
withCreateTime
-
withEncrypted
-
withExtendedAttributes
public SftpFileAttributes.SftpFileAttributesBuilder withExtendedAttributes(Map<String, byte[]> extendedAttributes) -
withFileAttributes
public SftpFileAttributes.SftpFileAttributesBuilder withFileAttributes(SftpFileAttributes attributes) -
withFlags
-
withGid
-
withGid
-
withUidOrUsername
-
withUidOrUsername
-
withGidOrGroup
-
withGidOrGroup
-
withGroup
-
withGroup
-
withHidden
-
withImmutable
-
withLastAccessTime
-
withLastAccessTime
-
withLastAccessTime
-
withLastModifiedTime
-
withLastModifiedTime
-
withLastModifiedTime
public SftpFileAttributes.SftpFileAttributesBuilder withLastModifiedTime(Optional<FileTime> lastModifiedTime) -
withPermissions
public SftpFileAttributes.SftpFileAttributesBuilder withPermissions(Collection<PosixFilePermission> permissions) -
withPermissions
public SftpFileAttributes.SftpFileAttributesBuilder withPermissions(Optional<PosixPermissions> permissions) -
withPermissions
public SftpFileAttributes.SftpFileAttributesBuilder withPermissions(PosixFilePermission... permissions) -
withPermissions
-
withReadOnly
-
withSize
-
withSize
public SftpFileAttributes.SftpFileAttributesBuilder withSize(Optional<com.sshtools.common.util.UnsignedInteger64> size) -
withSize
public SftpFileAttributes.SftpFileAttributesBuilder withSize(com.sshtools.common.util.UnsignedInteger64 size) -
withSparse
-
withSubSecondsTimes
-
withSupportedAttributeBits
public SftpFileAttributes.SftpFileAttributesBuilder withSupportedAttributeBits(long supportedAttributeBits) -
withSupportedAttributeBits
public SftpFileAttributes.SftpFileAttributesBuilder withSupportedAttributeBits(Optional<Long> supportedAttributeBits) -
withSupportedAttributeMask
public SftpFileAttributes.SftpFileAttributesBuilder withSupportedAttributeMask(long supportedAttributeMask) -
withSupportedAttributeMask
public SftpFileAttributes.SftpFileAttributesBuilder withSupportedAttributeMask(Optional<Long> supportedAttributeMask) -
withSync
-
withSystem
-
withType
-
withUid
-
withUid
-
withUsername
-
withUsername
-