Interface DataFileMetadata
public interface DataFileMetadata
This class define source metadata
- Since:
- 1.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionGet the content type of the file.longGet the content length of the file.Get the content MD5 of the file.Get the content type of the file.Get the DataFormat of the file.longGet the date of the last modification of the file.Get the symbolic link target.booleanisDir()Test if the file is a directory.booleanTest if the file is a symbolic link.
-
Method Details
-
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
-