public class ArtifactFileEntry extends BaseFileEntry
Artifact in a ArtifactStore.| Modifier | Constructor and Description |
|---|---|
protected |
ArtifactFileEntry(FileSystem fileSystem,
DirectoryEntry parent,
Artifact artifact,
ArtifactStore store)
Creates a file entry for the specified parent directory of the specified file system that corresponds to the
specified artifact in the specified artifact store and will have the name
Artifact.getName(). |
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the backing artifact.
|
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getSize() |
equals, getFileSystem, getName, getParent, hashCode, toPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFileSystem, getName, getParent, toPathprotected ArtifactFileEntry(FileSystem fileSystem, DirectoryEntry parent, Artifact artifact, ArtifactStore store)
Artifact.getName().fileSystem - the file system.parent - the parent directory.artifact - the artifact.store - the artifact store.public long getSize()
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionpublic long getLastModified()
throws IOException
IOExceptionpublic Artifact getArtifact()
Copyright © 2009–2022 MojoHaus. All rights reserved.