Interface DataFileMetadata
-
public interface DataFileMetadataThis class define source metadata- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentEncoding()Get the content type of the file.longgetContentLength()Get the content length of the file.StringgetContentMD5()Get the content MD5 of the file.StringgetContentType()Get the content type of the file.DataFormatgetDataFormat()Get the DataFormat of the file.longgetLastModified()Get the date of the last modification of the file.DataFilegetLinkTarget()Get the symbolic link target.booleanisDir()Test if the file is a directory.booleanisSymbolicLink()Test if the file is a symbolic link.
-
-
-
Method Detail
-
getContentLength
long getContentLength()
Get the content length of the file.- Returns:
- the content length or -1 if unavailable
-
getContentType
String getContentType()
Get the content type of the file.- Returns:
- the content type or null if unavailable
-
getContentEncoding
String getContentEncoding()
Get the content type of the file.- Returns:
- the content type or null if unavailable
-
getContentMD5
String getContentMD5()
Get the content MD5 of the file.- Returns:
- the content MD5 or null if unavailable
-
getLastModified
long getLastModified()
Get the date of the last modification of the file.- Returns:
- the last modified date in seconds since epoch of -1 if unavailable
-
isDir
boolean isDir()
Test if the file is a directory.- Returns:
- true if the file is a directory
-
isSymbolicLink
boolean isSymbolicLink()
Test if the file is a symbolic link.- Returns:
- true if the file is symbolic link
-
getDataFormat
DataFormat getDataFormat()
Get the DataFormat of the file.- Returns:
- the DataFormat of the source
-
getLinkTarget
DataFile getLinkTarget()
Get the symbolic link target.- Returns:
- The target of the symbolic link as DataFile
-
-