1 package de.fhdw.wtf.common.stream; 2 3 /** 4 * Interface for data input of {@link de.fhdw.wtf.dsl.scanner.common.Scanner} functions. 5 * 6 */ 7 public interface ScannerInputStream { 8 9 /** 10 * Returns the next <code>char</code> from the stream. 11 * 12 * @return next <code>char</code> 13 */ 14 char next(); 15 16 /** 17 * Tests if the Stream has at least one <code>char</code> to offer. 18 * 19 * @return <code>true</code> if there are 1 or more <code>char</code> left in the stream <br> 20 * <code>false</code> if stream is empty. 21 */ 22 boolean hasNext(); 23 24 }