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 intARCHIVEstatic intDIRECTORYstatic intFULL_ACCESSstatic intGROUP_EXECUTABLEstatic intGROUP_FULL_ACCESSstatic intGROUP_READABLEstatic intGROUP_WRITEABLEstatic intHIDDENstatic intOS2Platform codes to be used for extended attributes methods.static intOWNER_EXECUTABLEstatic intOWNER_FULL_ACCESSstatic intOWNER_READABLEAttribute masks.static intOWNER_WRITEABLEstatic intSYSTEMstatic intWORLD_EXECUTABLEstatic intWORLD_FULL_ACCESSstatic intWORLD_READABLEstatic intWORLD_WRITEABLE
-
Constructor Summary
Constructors Constructor Description FileAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()intgetAttributes()booleangetAttributeState(int attributeMask)byte[]getExtended(short platformCode)Returns the extended attribute bytes for the given platform code.voidread(java.io.InputStream in)voidsetAttributes(int attributes)voidsetAttributeState(int attributeMask, boolean active)voidsetExtended(short platformCode, byte[] value)Sets the extended attribute bytes for the given platform code.java.lang.StringtoString()voidwrite(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:
toStringin classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-