Secure iNet Factory

com.jscape.inet.sftp.packets
Class SftpFileAttributes.AttributePresenceFlags

java.lang.Object
  extended by com.jscape.inet.sftp.packets.SftpFileAttributes.AttributePresenceFlags
Direct Known Subclasses:
AttributePresenceFlags2
Enclosing class:
SftpFileAttributes

public static class SftpFileAttributes.AttributePresenceFlags
extends java.lang.Object

The attribute presence flags.

Version:
1.0
Author:
Alex

Constructor Summary
SftpFileAttributes.AttributePresenceFlags()
           
 
Method Summary
 boolean isAcModTimePresent()
          Checks if the file time attributes are present.
 boolean isExtendedPresent()
          Checks if the file extended attributes are present.
 boolean isPermissionsPresent()
          Checks if the file permission attribute is present.
 boolean isSizePresent()
          Checks if the file size attribute is present.
 boolean isUidGidPresent()
          Checks if the file owner and group 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 setAcModTimePresent()
          Setups the time attributes presence.
 void setExtendedPresent()
          Setups the extended attributes presence.
 void setPermissionsPresent()
          Setups the permission attribute presence.
 void setSizePresent()
          Setups the size attribute presence.
 void setUidGidPresent()
          Setups the owner and group attributes presence.
 void writeTo(java.io.OutputStream out)
          Writes the current object to the specified stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpFileAttributes.AttributePresenceFlags

public SftpFileAttributes.AttributePresenceFlags()
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

isSizePresent

public boolean isSizePresent()
Checks if the file size attribute is present.

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

setSizePresent

public void setSizePresent()
Setups the size attribute presence.


isUidGidPresent

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

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

setUidGidPresent

public void setUidGidPresent()
Setups the owner and group attributes presence.


isPermissionsPresent

public boolean isPermissionsPresent()
Checks if the file permission attribute is present.

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

setPermissionsPresent

public void setPermissionsPresent()
Setups the permission attribute presence.


isAcModTimePresent

public boolean isAcModTimePresent()
Checks if the file time attributes are present.

Returns:
true if the time attributes are present; false otherwise

setAcModTimePresent

public void setAcModTimePresent()
Setups the time attributes presence.


isExtendedPresent

public boolean isExtendedPresent()
Checks if the file extended attributes are present.

Returns:
true if the extended attributes are present; false otherwise

setExtendedPresent

public void setExtendedPresent()
Setups the extended attributes presence.


writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Writes the current object to the specified stream.

Parameters:
out - the output stream
Throws:
java.io.IOException - if I/O error occured

Secure iNet Factory

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