public class ArtifactContent extends Object
Constructor and Description |
---|
ArtifactContent(String fullPath,
File file) |
ArtifactContent(String path,
InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
File |
getFile()
Obtain a reference to the artifact's temporary File on the filesystem.
|
String |
getFilename()
Obtain the artifact's filename.
|
InputStream |
getInputStream()
Obtain this artifact's InputStream, created on-demand.
|
String |
getPath()
Obtain the artifact's path within its original context.
|
long |
getSize() |
public ArtifactContent(String path, InputStream is) throws IOException
IOException
public ArtifactContent(String fullPath, File file) throws IOException
IOException
public InputStream getInputStream() throws FileNotFoundException
FileNotFoundException
public File getFile()
public String getFilename()
public String getPath()
public long getSize()
public void cleanup()
Copyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.