|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.systemsx.cisd.openbis.dss.generic.shared.api.v1.FileInfoDssDTO
@JsonObject(value="FileInfoDssDTO") public class FileInfoDssDTO
Represents information about a file stored in DSS.
Constructor Summary | |
---|---|
FileInfoDssDTO(java.lang.String pathInDataSet,
java.lang.String pathInListing,
boolean isDirectory,
long fileSize)
|
|
FileInfoDssDTO(java.lang.String pathInDataSet,
java.lang.String pathInListing,
boolean isDirectory,
long fileSize,
java.lang.Integer crc32Checksum)
|
Method Summary | |
---|---|
long |
getFileSize()
Return the file size if this FileInfo represents a file. |
java.lang.String |
getPathInDataSet()
The path of this file in the data set (i.e., the root of the data set has a path of ""). |
java.lang.String |
getPathInListing()
The path of this file relative to the path of the request that produced this FileInfoDss |
boolean |
isDirectory()
Return true if this FileInfo represents a folder. |
java.lang.String |
toString()
|
java.lang.Integer |
tryGetCrc32Checksum()
Return the CRC32 checksum, if it is available and null otherwise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileInfoDssDTO(java.lang.String pathInDataSet, java.lang.String pathInListing, boolean isDirectory, long fileSize)
public FileInfoDssDTO(java.lang.String pathInDataSet, java.lang.String pathInListing, boolean isDirectory, long fileSize, java.lang.Integer crc32Checksum)
Method Detail |
---|
public java.lang.String getPathInDataSet()
public java.lang.String getPathInListing()
public boolean isDirectory()
public long getFileSize()
public java.lang.Integer tryGetCrc32Checksum()
null
otherwise.
Note that the checksum will only be available when it is precomputed and available from some sort of database, i.e. if it is computationally "cheap" to provide the checksum.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |