org.edg.data.reptor.info
Class FileInfo

java.lang.Object
  extended byorg.edg.data.reptor.info.FileInfo
All Implemented Interfaces:
java.io.Serializable

public class FileInfo
extends java.lang.Object
implements java.io.Serializable

The File Information object has information about a file stored in an SE.

Version:
$Id $
Author:
Peter Kunszt
See Also:
Serialized Form

Constructor Summary
FileInfo()
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.net.URI getName()
          Get the file name.
 java.lang.String getOwner()
          Get the file owner.
 long getSize()
          Get the file size.
 int hashCode()
           
 void setName(java.net.URI name)
          Set the file name
 void setOwner(java.lang.String owner)
          Set the file owner.
 void setSize(long size)
          Set the file size.
 java.lang.String toString()
          Print contents into a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInfo

public FileInfo()
Constructor.

Method Detail

setName

public void setName(java.net.URI name)
Set the file name

Parameters:
name - the file name

setSize

public void setSize(long size)
Set the file size.

Parameters:
size - The size in bytes

setOwner

public void setOwner(java.lang.String owner)
              throws java.lang.NullPointerException
Set the file owner.

Parameters:
owner - string
Throws:
java.lang.NullPointerException

getName

public java.net.URI getName()
Get the file name.


getSize

public long getSize()
Get the file size.


getOwner

public java.lang.String getOwner()
Get the file owner.

Returns:
the owner of the file

toString

public java.lang.String toString()
Print contents into a string.


equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()