public class StatInfo extends Invocation
| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
m_atime
Contains the last access time timestamp.
|
private long |
m_blksize
Stores the blocksize of the file.
|
private long |
m_blocks
Stores the number of blocks of the file.
|
private java.util.Date |
m_ctime
Contains the creation time timestamp.
|
private int |
m_gid
group id of the owner of the file.
|
private java.lang.String |
m_group
symbolical group name of the effective user.
|
private long |
m_inode
We store the inode number, which let's us reference a file uniquely
per filesystem.
|
private int |
m_mode
Is the number for the file mode.
|
private java.util.Date |
m_mtime
Contains the last modification time timestamp;
|
private long |
m_nlink
Stores the number of hard links to the file.
|
private long |
m_size
Denotes the size of the file.
|
private int |
m_uid
user id of the owner of the file.
|
private java.lang.String |
m_user
symbolical user name of the effective user.
|
| Constructor and Description |
|---|
StatInfo()
Default c'tor: Construct a hollow shell and allow further
information to be added later.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getAccessTime()
Accessor
|
long |
getBlocks()
Accessor
|
long |
getBlockSize()
Accessor
|
java.util.Date |
getCreationTime()
Accessor
|
int |
getGID()
Accessor
|
java.lang.String |
getGroup()
Accessor
|
long |
getINode()
Accessor
|
long |
getLinkCount()
Accessor
|
int |
getMode()
Accessor
|
java.util.Date |
getModificationTime()
Accessor
|
long |
getSize()
Accessor
|
int |
getUID()
Accessor
|
java.lang.String |
getUser()
Accessor
|
void |
setAccessTime(java.util.Date atime)
Accessor.
|
void |
setBlocks(long blocks)
Accessor.
|
void |
setBlockSize(long blksize)
Accessor.
|
void |
setCreationTime(java.util.Date ctime)
Accessor.
|
void |
setGID(int gid)
Accessor.
|
void |
setGroup(java.lang.String group)
Accessor.
|
void |
setINode(long inode)
Accessor.
|
void |
setLinkCount(long nlink)
Accessor.
|
void |
setMode(int mode)
Accessor.
|
void |
setModificationTime(java.util.Date mtime)
Accessor.
|
void |
setSize(long size)
Accessor.
|
void |
setUID(int uid)
Accessor.
|
void |
setUser(java.lang.String user)
Accessor.
|
void |
toString(java.io.Writer stream)
Converts the active state into something meant for human consumption.
|
void |
toXML(java.io.Writer stream,
java.lang.String indent,
java.lang.String namespace)
Dump the state of the current element as XML output.
|
private int m_mode
private long m_size
private long m_inode
private long m_nlink
private long m_blksize
private long m_blocks
private java.util.Date m_atime
private java.util.Date m_ctime
private java.util.Date m_mtime
private int m_uid
private java.lang.String m_user
private int m_gid
private java.lang.String m_group
public StatInfo()
public int getMode()
setMode(int)public void setMode(int mode)
mode - getMode()public long getSize()
setSize(long)public void setSize(long size)
size - getSize()public long getINode()
setINode(long)public void setINode(long inode)
inode - getINode()public long getLinkCount()
setLinkCount(long)public void setLinkCount(long nlink)
nlink - getLinkCount()public long getBlockSize()
setBlockSize(long)public void setBlockSize(long blksize)
blksize - getBlockSize()public long getBlocks()
setBlocks(long)public void setBlocks(long blocks)
blocks - getBlocks()public java.util.Date getAccessTime()
setAccessTime(Date)public void setAccessTime(java.util.Date atime)
atime - getAccessTime()public java.util.Date getCreationTime()
setCreationTime(Date)public void setCreationTime(java.util.Date ctime)
ctime - getCreationTime()public java.util.Date getModificationTime()
setModificationTime(Date)public void setModificationTime(java.util.Date mtime)
mtime - getModificationTime()public int getUID()
setUID(int)public void setUID(int uid)
uid - getUID()public java.lang.String getUser()
setUser(String)public void setUser(java.lang.String user)
user - getUser()public int getGID()
setGID(int)public void setGID(int gid)
gid - getGID()public java.lang.String getGroup()
setGroup(String)public void setGroup(java.lang.String group)
group - getGroup()public void toString(java.io.Writer stream)
throws java.io.IOException
toString in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.java.io.IOException - if something fishy happens to the stream.public void toXML(java.io.Writer stream,
java.lang.String indent,
java.lang.String namespace)
throws java.io.IOException
toXML in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.indent - is a String of spaces used for pretty
printing. The initial amount of spaces should be an empty string.
The parameter is used internally for the recursive traversal.
If a null value is specified, no indentation nor
linefeeds will be generated.namespace - is the XML schema namespace prefix. If neither
empty nor null, each element will be prefixed with this prefix,
and the root element will map the XML namespace.java.io.IOException - if something fishy happens to the stream.BufferedWriter