Add javadoc to ArtifactCallback, fix InputStream handling.