|
ShrinkWrap Resolver SPI 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<InputStreamFormatProcessor>
org.jboss.shrinkwrap.resolver.spi.format.InputStreamFormatProcessor
public enum InputStreamFormatProcessor
FormatProcessor implementation to return an InputStream from the provided ResolvedArtifact argument.
Implementation note: This format processor does not use type parameters to be able to process any type inherited from
ResolvedAritifact.
| Enum Constant Summary | |
|---|---|
INSTANCE
|
|
| Method Summary | |
|---|---|
boolean |
handles(Class resolvedTypeClass)
Checks if the processor is able to process RESOLVEDTYPE |
InputStream |
process(ResolvedArtifact artifact,
Class returnType)
Processes the specified RESOLVEDTYPE and returns as the typed return value. |
boolean |
returns(Class returnTypeClass)
Checks if the processor is able to return returnTypeClass. |
static InputStreamFormatProcessor |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static InputStreamFormatProcessor[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final InputStreamFormatProcessor INSTANCE
| Method Detail |
|---|
public static InputStreamFormatProcessor[] values()
for (InputStreamFormatProcessor c : InputStreamFormatProcessor.values()) System.out.println(c);
public static InputStreamFormatProcessor valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public InputStream process(ResolvedArtifact artifact,
Class returnType)
throws IllegalArgumentException
RESOLVEDTYPE and returns as the typed return value.
process in interface FormatProcessorIllegalArgumentException - If the RESOLVEDTYPE argument is not specified or nullorg.jboss.shrinkwrap.resolver.spi.format.FormatProcessor#process(File, Class)public boolean handles(Class resolvedTypeClass)
FormatProcessorRESOLVEDTYPE
handles in interface FormatProcessorpublic boolean returns(Class returnTypeClass)
FormatProcessorreturnTypeClass.
returns in interface FormatProcessor
|
ShrinkWrap Resolver SPI 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||