public interface File<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns map of attributes associated with the file.content()The content of the file.static StringdiscoverType(String name) entries()Return entries of the file - depending on the type of file it can be populated or empty listname()Returns name of the file including extension if defineddefault Stringtype()Returns type of the file that defines how to handle the content.url()Returns url representing this file based on the type and content
-
Field Details
-
DEFAULT_CONTENT_TYPE
- See Also:
-
ENTRIES_ATTR
- See Also:
-
-
Method Details
-
name
String name()Returns name of the file including extension if defined- Returns:
- full file name
-
type
Returns type of the file that defines how to handle the content. It's expected to return MIME type based on the actual content of the file.- Returns:
- MIME type that represents this file
-
content
T content()The content of the file.- Returns:
- complete content of the file
-
attributes
Returns map of attributes associated with the file. Additional attributes can be set at any time such as last modification date, etc- Returns:
- non null map of attributes
-
url
String url()Returns url representing this file based on the type and content- Returns:
- url of the file
-
entries
Return entries of the file - depending on the type of file it can be populated or empty list- Returns:
- found entries in the file
-
discoverType
-