Package org.codehaus.mojo.mrm.api
Interface FileEntry
- All Superinterfaces:
Entry
- All Known Implementing Classes:
BaseFileEntry
An
Entry
that corresponds to a file.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the contents of the entry.long
getSize()
Returns the size in bytes of the entry.Methods inherited from interface org.codehaus.mojo.mrm.api.Entry
getFileSystem, getLastModified, getName, getParent, toPath
-
Method Details
-
getSize
Returns the size in bytes of the entry.- Returns:
- the length of the entry in bytes or
-1L
if the length cannot be determined. - Throws:
IOException
- if an I/O error occurs.- Since:
- 1.0
-
getInputStream
Returns the contents of the entry.- Returns:
- the contents of the entry as an
InputStream
(caller is responsible for closing). - Throws:
IOException
- if an I/O error occurs.- Since:
- 1.0
-