Package com.installshield.util
Class FileAttributes
- java.lang.Object
-
- com.installshield.util.FileAttributes
-
- All Implemented Interfaces:
PropertyAccessible
,java.lang.Cloneable
public class FileAttributes extends java.lang.Object implements PropertyAccessible, java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARCHIVE
static int
DIRECTORY
static int
FULL_ACCESS
static int
GROUP_EXECUTABLE
static int
GROUP_FULL_ACCESS
static int
GROUP_READABLE
static int
GROUP_WRITEABLE
static int
HIDDEN
static int
OS2
Platform codes to be used for extended attributes methods.static int
OWNER_EXECUTABLE
static int
OWNER_FULL_ACCESS
static int
OWNER_READABLE
Attribute masks.static int
OWNER_WRITEABLE
static int
SYSTEM
static int
WORLD_EXECUTABLE
static int
WORLD_FULL_ACCESS
static int
WORLD_READABLE
static int
WORLD_WRITEABLE
-
Constructor Summary
Constructors Constructor Description FileAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
int
getAttributes()
boolean
getAttributeState(int attributeMask)
byte[]
getExtended(short platformCode)
Returns the extended attribute bytes for the given platform code.void
read(java.io.InputStream in)
void
setAttributes(int attributes)
void
setAttributeState(int attributeMask, boolean active)
void
setExtended(short platformCode, byte[] value)
Sets the extended attribute bytes for the given platform code.java.lang.String
toString()
void
write(java.io.OutputStream out)
-
-
-
Field Detail
-
OS2
public static final int OS2
Platform codes to be used for extended attributes methods.- See Also:
- Constant Field Values
-
OWNER_READABLE
public static final int OWNER_READABLE
Attribute masks.- See Also:
- Constant Field Values
-
OWNER_WRITEABLE
public static final int OWNER_WRITEABLE
- See Also:
- Constant Field Values
-
OWNER_EXECUTABLE
public static final int OWNER_EXECUTABLE
- See Also:
- Constant Field Values
-
OWNER_FULL_ACCESS
public static final int OWNER_FULL_ACCESS
- See Also:
- Constant Field Values
-
GROUP_READABLE
public static final int GROUP_READABLE
- See Also:
- Constant Field Values
-
GROUP_WRITEABLE
public static final int GROUP_WRITEABLE
- See Also:
- Constant Field Values
-
GROUP_EXECUTABLE
public static final int GROUP_EXECUTABLE
- See Also:
- Constant Field Values
-
GROUP_FULL_ACCESS
public static final int GROUP_FULL_ACCESS
- See Also:
- Constant Field Values
-
WORLD_READABLE
public static final int WORLD_READABLE
- See Also:
- Constant Field Values
-
WORLD_WRITEABLE
public static final int WORLD_WRITEABLE
- See Also:
- Constant Field Values
-
WORLD_EXECUTABLE
public static final int WORLD_EXECUTABLE
- See Also:
- Constant Field Values
-
WORLD_FULL_ACCESS
public static final int WORLD_FULL_ACCESS
- See Also:
- Constant Field Values
-
FULL_ACCESS
public static final int FULL_ACCESS
- See Also:
- Constant Field Values
-
HIDDEN
public static final int HIDDEN
- See Also:
- Constant Field Values
-
ARCHIVE
public static final int ARCHIVE
- See Also:
- Constant Field Values
-
SYSTEM
public static final int SYSTEM
- See Also:
- Constant Field Values
-
DIRECTORY
public static final int DIRECTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAttributes
public void setAttributes(int attributes)
-
getAttributes
public int getAttributes()
-
setAttributeState
public void setAttributeState(int attributeMask, boolean active)
-
getAttributeState
public boolean getAttributeState(int attributeMask)
-
write
public void write(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public void read(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
setExtended
public void setExtended(short platformCode, byte[] value)
Sets the extended attribute bytes for the given platform code.
-
getExtended
public byte[] getExtended(short platformCode)
Returns the extended attribute bytes for the given platform code.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
-