if (in == null) return result;
if (isXFlag()) eatToShebang(in);
try {
InputStreamMarkCursor cursor = new InputStreamMarkCursor(in, 8192);
try {
if (!isShebang(cursor)) return result;
} finally {
cursor.finish();
}
in.mark(8192);
reader = new BufferedReader(new InputStreamReader(in, "iso-8859-1"), 8192);
String firstLine = reader.readLine();