public interface File
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Returns the data stream.
|
ZonedDateTime |
getLastModificationDate()
Returns the last modification date.
|
long |
getLength()
Returns the length of the data stream.
|
String |
getMimeType()
Returns the data mime-type.
|
String |
getName()
Retrieves the file's name
|
String |
getPath()
Returns the path of this resource in its hierarchy (which is a subset of the whole repository).
|
void |
setLastModificationDate(ZonedDateTime lastModificationDate)
Sets the last modification date of the file's data
|
void |
setMimeType(String mimeType)
Sets the mime type of the file's data
|
InputStream getInputStream()
ZonedDateTime getLastModificationDate()
void setLastModificationDate(ZonedDateTime lastModificationDate)
lastModificationDate
- the last modification date to setlong getLength()
String getMimeType()
void setMimeType(String mimeType)
mimeType
- the mime type to set