1 import java.io.*; 2 3 class MyClass { 4 5 public void foo1() { 6 java.util.Scanner s = new java.util.Scanner(in, encoding).useDelimiter("\\A"); 7 return s.hasNext() ? s.next() : ""; 8 } 9 10 }