org.oddjob.io
Class StdinType
java.lang.Object
org.oddjob.io.StdinType
- All Implemented Interfaces:
- ArooaValue, ValueFactory<InputStream>
public class StdinType
- extends Object
- implements ValueFactory<InputStream>
Description
Provide an output to the console.Example
Copy from stdin to a file.
<copy to="foo.txt">
<input>
<stdin/>
</input>
</copy>
Method Summary |
InputStream |
toValue()
Provide an instance of the type this is a factory for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdinType
public StdinType()
toValue
public InputStream toValue()
throws ArooaConversionException
- Description copied from interface:
ValueFactory
- Provide an instance of the type this is a factory for.
- Specified by:
toValue
in interface ValueFactory<InputStream>
- Returns:
- An instance of the type. May be null.
- Throws:
ArooaConversionException
- If unable to provide a value.