Interface ResolvedArtifactFile
- All Superinterfaces:
AutoCloseable
,Closeable
The ResolvedArtifactFile is created by the
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.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile.The filename of the file that this ResolvedArtifactFile represents.Opens a newInputStream
containing the data of the resolved file.
-
Method Details
-
getFileName
String getFileName()The filename of the file that this ResolvedArtifactFile represents.- Returns:
- the filename
-
openStream
Opens a newInputStream
containing the data of the resolved file.- Returns:
- an
InputStream
- Throws:
IOException
- When there was an error opening theInputStream
-
close
Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile. (Also see:Closeable.close()
This method will always be called by the application in order to ensure no resources are leaked.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-