Interface DataFileMetadata
-
public interface DataFileMetadata
This class define source metadata- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentEncoding()
Get the content type of the file.long
getContentLength()
Get the content length of the file.String
getContentMD5()
Get the content MD5 of the file.String
getContentType()
Get the content type of the file.DataFormat
getDataFormat()
Get the DataFormat of the file.long
getLastModified()
Get the date of the last modification of the file.DataFile
getLinkTarget()
Get the symbolic link target.boolean
isDir()
Test if the file is a directory.boolean
isSymbolicLink()
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
-
-