public interface DescriptorFile
When the DescriptorReader
reads descriptors from local files
it provides an iterator over these containers which in turn contain
references to classes implementing the Descriptor
interface.
This container also stores potentially useful meta-data about the
descriptor file.
Modifier and Type | Method and Description |
---|---|
java.util.List<Descriptor> |
getDescriptors()
Return the descriptors contained in the descriptor file.
|
java.io.File |
getDirectory()
Return the directory where this descriptor file was contained, or
null if the file was contained in a tarball.
|
java.lang.Exception |
getException()
Return the first exception that was thrown when reading this file or
parsing its content, or null if no exception was thrown.
|
java.io.File |
getFile()
Return the descriptor file itself, or null if the descriptor file
was contained in a tarball.
|
java.lang.String |
getFileName()
Return the descriptor file name, which is either the absolute path
of the file on disk, or the tar file entry name.
|
long |
getLastModified()
Return the time in milliseconds since the epoch when the descriptor
file on disk was last modified.
|
java.io.File |
getTarball()
Return the tarball where this descriptor file was contained, or null
if the file was not contained in a tarball.
|
java.io.File getDirectory()
java.io.File getTarball()
java.io.File getFile()
java.lang.String getFileName()
long getLastModified()
java.util.List<Descriptor> getDescriptors()
java.lang.Exception getException()