@JsonObject(value="FileInfoDssDTO")
public class FileInfoDssDTO
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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. |
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)
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