Secure iNet Factory

com.jscape.inet.sftp.v4.packets
Class AttributePresenceFlags2

java.lang.Object
  extended by com.jscape.inet.sftp.packets.SftpFileAttributes.AttributePresenceFlags
      extended by com.jscape.inet.sftp.v4.packets.AttributePresenceFlags2

public class AttributePresenceFlags2
extends SftpFileAttributes.AttributePresenceFlags

The attribute presence flags version 2.

Version:
1.0
Author:
Alex

Constructor Summary
AttributePresenceFlags2()
           
 
Method Summary
 boolean isAccessTimePresent()
          Checks if the file access time attribute is present.
 boolean isAclPresent()
          Checks if the file acl attribute is present.
 boolean isCreateTimePresent()
          Checks if the file creation time attribute is present.
 boolean isModifyTimePresent()
          Checks if the file modification time attribute is present.
 boolean isOwnerGroupPresent()
          Checks if the file owner and group attributes are present.
 boolean isSubSecondTimesPresent()
          Checks if the file subsecond times attributes are present.
static SftpFileAttributes.AttributePresenceFlags readFrom(java.io.InputStream in, java.lang.String charset)
          Reads the file attribute presence flags from the stream.
 void setAccessTimePresent()
          Setups the access time attribute presence.
 void setAclPresent()
          Setups the acl attribute presence.
 void setCreateTimePresent()
          Setups the creation time attribute presence.
 void setModifyTimePresent()
          Setups the modification time attribute presence.
 void setOwnerGroupPresent()
          Setups the owner and group attribute presence.
 void setSubSecondTimesPresent()
          Setups the subsecond times attributes presence.
 
Methods inherited from class com.jscape.inet.sftp.packets.SftpFileAttributes.AttributePresenceFlags
isAcModTimePresent, isExtendedPresent, isPermissionsPresent, isSizePresent, isUidGidPresent, setAcModTimePresent, setExtendedPresent, setPermissionsPresent, setSizePresent, setUidGidPresent, writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePresenceFlags2

public AttributePresenceFlags2()
Method Detail

readFrom

public static SftpFileAttributes.AttributePresenceFlags readFrom(java.io.InputStream in,
                                                                 java.lang.String charset)
                                                          throws java.io.IOException
Reads the file attribute presence flags from the stream.

Parameters:
in - the source input stream
Returns:
the readed flags
Throws:
java.io.IOException - if an I/O error occurs

isAccessTimePresent

public boolean isAccessTimePresent()
Checks if the file access time attribute is present.

Returns:
true if the access time attribute is present; false otherwise

setAccessTimePresent

public void setAccessTimePresent()
Setups the access time attribute presence.


isCreateTimePresent

public boolean isCreateTimePresent()
Checks if the file creation time attribute is present.

Returns:
true if the creation time attribute is present; false otherwise

setCreateTimePresent

public void setCreateTimePresent()
Setups the creation time attribute presence.


isModifyTimePresent

public boolean isModifyTimePresent()
Checks if the file modification time attribute is present.

Returns:
true if the modification time attribute is present; false otherwise

setModifyTimePresent

public void setModifyTimePresent()
Setups the modification time attribute presence.


isAclPresent

public boolean isAclPresent()
Checks if the file acl attribute is present.

Returns:
true if the acl attribute is present; false otherwise

setAclPresent

public void setAclPresent()
Setups the acl attribute presence.


isOwnerGroupPresent

public boolean isOwnerGroupPresent()
Checks if the file owner and group attributes are present.

Returns:
true if the owner and group attributes are present; false otherwise

setOwnerGroupPresent

public void setOwnerGroupPresent()
Setups the owner and group attribute presence.


isSubSecondTimesPresent

public boolean isSubSecondTimesPresent()
Checks if the file subsecond times attributes are present.

Returns:
true if the subsecond times attributes are present; false otherwise

setSubSecondTimesPresent

public void setSubSecondTimesPresent()
Setups the subsecond times attributes presence.


Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved