com.trassare.calculator.engine
Class PushbackReaderFactory
java.lang.Object
com.trassare.calculator.engine.PushbackReaderFactory
public final class PushbackReaderFactory
- extends Object
Used to swap out the PushbackReader in the ExpressionScanner.
- Version:
- 16 November 2005
- Author:
- Samuel Trassare
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
public static PushbackReader reader(String inputString)
- Takes a string and uses it to create a new PushbackReader.
- Parameters:
inputString - the new string to use in the PushbackReader.
- Returns:
- a new PushbackReader initialized with a string