print one file, given an open InputStream
BufferedInputStream is = new BufferedInputStream(ois);
num.setLength(0);
txt.setLength(0);
try {
int b = 0;
int column = 0;
while ((b=is.read()) != -1) {
num.append(b);
num.append(' ");
txt.append(Character.isLetterOrDigit((char)b) ? (char)b : '.");
if (++column%PERLINE == 0) {
dump();
}
}
System.out.print("\n");
is.close();
} catch (IOException e) {
System.out.println("IOException: " + e);
}