Interface ResolvedArtifactFile
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
public interface ResolvedArtifactFile extends java.io.Closeable
The ResolvedArtifactFile is created by theArtifactResolver
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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 newInputStream
containing 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.IOException
Opens a newInputStream
containing 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.IOException
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-