T - transformation target typepublic abstract class StreamParameterTransformation<T> extends java.lang.Object implements ParameterTransformation<T>
| Constructor and Description |
|---|
StreamParameterTransformation() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
transform(java.io.InputStream arg)
Transforms the data from the given stream into some target type T.
|
T |
transform(java.lang.String arg)
Transforms the given string-typed parameter into some target type T.
|
public final T transform(java.lang.String arg) throws ModuleException
ParameterTransformationtransform in interface ParameterTransformation<T>arg - parameterModuleException - thrown when the transformation failspublic abstract T transform(java.io.InputStream arg) throws ModuleException, java.io.IOException
ParameterTransformation.transform(String) on the result.arg - parameterModuleException - thrown when the transformation failsjava.io.IOException - thrown when reading from the stream fails