RESOLVEDTYPE
- public interface ResolvedArtifact<RESOLVEDTYPE extends ResolvedArtifact<RESOLVEDTYPE>>
Modifier and Type | Method and Description |
---|---|
<RETURNTYPE> |
as(Class<RETURNTYPE> returnTypeClass)
Returns resolved artifact formatted to
returnTypeClass . |
File |
asFile()
Returns resolved artifact as a
File |
InputStream |
asInputStream()
Returns resolved artifact as an @{link
InputStream . |
RESOLVEDTYPE |
asResolvedArtifact()
Returns resolved artifact, optionally casted to the sub type of
ResolvedArtifact |
RESOLVEDTYPE asResolvedArtifact()
ResolvedArtifact
InputStream asInputStream()
InputStream
. It is a responsibility of the caller to close stream
afterwards.<RETURNTYPE> RETURNTYPE as(Class<RETURNTYPE> returnTypeClass) throws IllegalArgumentException, UnsupportedOperationException
returnTypeClass
.
See FormatProcessor
to register additional format.returnTypeClass
- {@link
- IllegalArgumentException} If the type is not specified{@link
- UnsupportedOperationException} If the type is not supportedIllegalArgumentException
UnsupportedOperationException
Copyright © 2013 JBoss by Red Hat. All rights reserved.