AnyLogic
Expand
Font size
All Implemented Interfaces:
Scanner

public class StringScanner
extends Object
implements Scanner

Constructor Summary

ConstructorDescription
StringScanner(String s) 

Method Summary

Modifier and TypeMethodDescription
intgetPosition() 
booleanisEOF() 
charread() 
Stringstate() 
StringtoString() 
voidunread() 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Details

StringScanner

public StringScanner(String s)

Method Details

isEOF

public boolean isEOF()
Specified by:
isEOF in interface Scanner

read

public char read()
Specified by:
read in interface Scanner

unread

public void unread()
Specified by:
unread in interface Scanner

getPosition

public int getPosition()
Specified by:
getPosition in interface Scanner

toString

public String toString()
Overrides:
toString in class Object

state

public String state()
Specified by:
state in interface Scanner