public virtual void ReadFile(Stream ins, FileFormat format, uint stopTag) { DcmParser Parser = new DcmParser(ins); Parser.DcmHandler = DcmHandler; Parser.ParseDcmFile(format, stopTag); }
public long ParseDcmFile(FileFormat format) { return ParseDcmFile(format, 0xffffffff); }
public long ParseDcmFile(FileFormat format, uint stopTag) { if (format == null) format = DetectFileFormat(); if (handler != null) handler.StartDcmFile(); DcmDecodeParam param = format.decodeParam; rPos = 0L; if (format.hasFileMetaInfo) { tsUID = null; ParseFileMetaInfo(format.hasPreamble, format.decodeParam); if (tsUID == null) log.Warn("Missing Transfer Syntax UID in FMI"); else param = DcmDecodeParam.ValueOf(tsUID); } ParseDataset(param, stopTag); if (handler != null) handler.EndDcmFile(); return rPos; }
public override void readFile(System.IO.Stream in_Renamed, FileFormat format, int stopTag) { throw new UnsupportedOperationException(); }