ScanInfoTag tag = new ScanInfoTag();
Vector v = new Vector();
while (tag.entry != 0x0FFFFFFFF) {
tag = getScanInfoTag(stream);
if (Marker.isMarker(tag.entry)) {
Marker m = new Marker();
while (tag.entry != 0x0FFFFFFFF) {
tag = getScanInfoTag(stream);
m.records = getRecords(stream, tag, m.data, m.records);
}
v.add(m);