System.out.println("we went too deep!");
break;
}
if (record instanceof CDFILEHEADER) {
CDFILEHEADER header = (CDFILEHEADER) record;
totalSegments = header.getSegCount();
segmentCount = 0;
}
if (record instanceof CDFILESEGMENT) {
CDFILESEGMENT seg = (CDFILESEGMENT) record;
ByteBuffer data = ByteBuffer.wrap(seg.getFileData());