public interface ResolvedArtifactFile
extends java.io.Closeable
ArtifactResolver
and represents the (possibly remote) artifact file. The contents of which will be copied to an XL-* application server when they're
necessary during for instance a deployment.Modifier and Type | Method and Description |
---|---|
void |
close()
Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile.
|
java.lang.String |
getFileName()
The filename of the file that this ResolvedArtifactFile represents.
|
java.io.InputStream |
openStream()
Opens a new
InputStream containing the data of the resolved file. |
java.lang.String getFileName()
java.io.InputStream openStream() throws java.io.IOException
InputStream
containing the data of the resolved file.InputStream
java.io.IOException
- When there was an error opening the InputStream
void close() throws java.io.IOException
Closeable.close()
This method will always be called by the application in order to ensure no resources are leaked.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException