String line;
char c;
int col;
while ((line = is.readLine()) != null) {
col = 0;
for (int i=0; i<line.length(); i++) {
// Either ordinary character or tab.
if ((c=line.charAt(i)) != '\t") {
System.out.print(c); // Ordinary
++col;
continue;
}
do { // Tab, expand it, must put >=1 space
System.out.print(' ");
} while (!tabpos(++col));
}
System.out.println();
}