예제 #1
0
 public virtual void ReadFile(Stream ins, FileFormat format, uint stopTag)
 {
     DcmParser Parser = new DcmParser(ins);
     Parser.DcmHandler = DcmHandler;
     Parser.ParseDcmFile(format, stopTag);
 }
예제 #2
0
 public long ParseDcmFile(FileFormat format)
 {
     return ParseDcmFile(format, 0xffffffff);
 }
예제 #3
0
 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;
 }
예제 #4
0
 public override void readFile(System.IO.Stream in_Renamed, FileFormat format, int stopTag)
 {
     throw new UnsupportedOperationException();
 }