Using Java.util.scanner with GWT
===

for some reason when I try to use scanner with gwt, i get the following error:

    No source code is available for type java.util.Scanner; did you forget to inherit a required module?

I looked around and it seems the "No source code is available for type xxxx" errors are due to not having a Javascript equivalent type for the Java type.
Is scanner not able to be used with GWT?

Here is a snippet of my code:

    import java.util.Scanner;
    ...
    public void submit(){
		String text = editor.getEditor().getText();
		Scanner input = new Scanner(text);
		while(input.hasNextLine()){
			String line = input.nextLine();
			if(line.contains("//")){
				cInfo.setDone(false);
				cInfo.setCode(text);
				return;
			}
			cInfo.setDone(true);
			cInfo.setCode(text);
			}
		}
		
	}
