Interface ResolvedArtifactFile
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface ResolvedArtifactFile extends java.io.CloseableThe ResolvedArtifactFile is created by theArtifactResolverand 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile.java.lang.StringgetFileName()The filename of the file that this ResolvedArtifactFile represents.java.io.InputStreamopenStream()Opens a newInputStreamcontaining the data of the resolved file.
-
-
-
Method Detail
-
getFileName
java.lang.String getFileName()
The filename of the file that this ResolvedArtifactFile represents.- Returns:
- the filename
-
openStream
java.io.InputStream openStream() throws java.io.IOExceptionOpens a newInputStreamcontaining the data of the resolved file.- Returns:
- an
InputStream - Throws:
java.io.IOException- When there was an error opening theInputStream
-
close
void close() throws java.io.IOExceptionAllows 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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-