MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getNextTag

Method getNextTag

ij/src/main/java/ij/plugin/DICOM.java:506–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

getFileInfoMethod · 0.95

Calls 2

getShortMethod · 0.95
getLengthMethod · 0.95

Tested by

no test coverage detected