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 TypeMethodDescriptionvoidclose()Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile.The filename of the file that this ResolvedArtifactFile represents.default longReturns the file size in bytes if known, or -1 if the size cannot be determined.Opens a newInputStreamcontaining 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 newInputStreamcontaining 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFileSize
default long getFileSize()Returns the file size in bytes if known, or -1 if the size cannot be determined.- Returns:
- the file size in bytes, or -1L if unknown
-