org.jmonks.dms.versioncontrol.api
Interface FileVersion

All Known Implementing Classes:
DefaultFileVersion

public interface FileVersion

Author:
Suresh Pragada This represents gives the interface to access particular version of a file entry in repository. It would allow to access the meta information of that version and contents of that version.

Method Summary
 java.io.InputStream getInputStream()
          This method will allow to read the contents of that particular version of that file entry.
 int getLength()
          Returns the length of the file of this version.
 java.lang.String getVersionAuthor()
          Returns the author of version of this object.
 java.util.Date getVersionDate()
          Returns the created date of this version.
 java.lang.String getVersionDescription()
          Returns the description of this version.
 int getVersionNumber()
          Returns the number of version this object holds.
 

Method Detail

getVersionNumber

public int getVersionNumber()
Returns the number of version this object holds.

Returns:
Retuns the version number of this object.

getVersionDate

public java.util.Date getVersionDate()
Returns the created date of this version.

Returns:
Retuns the created date as java.util.Date.

getVersionAuthor

public java.lang.String getVersionAuthor()
Returns the author of version of this object.

Returns:
Retuns the author of this version.

getVersionDescription

public java.lang.String getVersionDescription()
Returns the description of this version.

Returns:
Retuns the description of this version.

getInputStream

public java.io.InputStream getInputStream()
This method will allow to read the contents of that particular version of that file entry.

Returns:
InputStream of contents of that version.

getLength

public int getLength()
Returns the length of the file of this version. This will be used in downloads to specifiy the length of the file being downloaded.

Returns:
Returns the number of bytes to be downloaded.