count = bufferedStream.read( headerBytes );
bufferedStream.reset();
// if it starts with the LEO magic number check the header
if (LEOFile.checkIsLEO( headerBytes, count )) {
LEOFile leo = new LEOFile( bufferedStream );
if (leo.hasWorkBook()) return new WorkBookHandle( leo );
else throw new WorkBookException(
"input is LEO but no supported format detected", -1 );
}
String headerString;