()
| 504 | } |
| 505 | |
| 506 | int getNextTag() throws IOException { |
| 507 | int groupWord = getShort(); |
| 508 | if (groupWord==0x0800 && bigEndianTransferSyntax) { |
| 509 | littleEndian = false; |
| 510 | groupWord = 0x0008; |
| 511 | } |
| 512 | int elementWord = getShort(); |
| 513 | int tag = groupWord<<16 | elementWord; |
| 514 | elementLength = getLength(); |
| 515 | |
| 516 | // hack needed to read some GE files |
| 517 | // The element length must be even! |
| 518 | if (elementLength==13 && !oddLocations) elementLength = 10; |
| 519 | |
| 520 | // "Undefined" element length. |
| 521 | // This is a sort of bracket that encloses a sequence of elements. |
| 522 | if (elementLength==-1) { |
| 523 | elementLength = 0; |
| 524 | inSequence = true; |
| 525 | } |
| 526 | //IJ.log("getNextTag: "+tag+" "+elementLength); |
| 527 | return tag; |
| 528 | } |
| 529 | |
| 530 | FileInfo getFileInfo() throws IOException { |
| 531 | long skipCount; |
no test coverage detected