RESOLVEDTYPE
- The resolved typepublic 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.InputStream
.<RETURNTYPE> RETURNTYPE as(Class<RETURNTYPE> returnTypeClass) throws IllegalArgumentException, UnsupportedOperationException
returnTypeClass
.
See FormatProcessor
to register additional format.RETURNTYPE
- The return typereturnTypeClass
- The return type class.returnTypeClass
.IllegalArgumentException
- If the type is not specifiedUnsupportedOperationException
- If the type is not supportedCopyright © 2021 JBoss by Red Hat. All rights reserved.