org.dcm4che2.imageio
Class ItemParser

java.lang.Object
  extended by org.dcm4che2.imageio.ItemParser
All Implemented Interfaces:
com.sun.media.imageio.stream.StreamSegmentMapper

public class ItemParser
extends java.lang.Object
implements com.sun.media.imageio.stream.StreamSegmentMapper

Since:
Aug 6, 2007
Version:
$Revision$ $Date$
Author:
Gunter Zeilinger

Nested Class Summary
static class ItemParser.Item
           
 
Constructor Summary
ItemParser(DicomInputStream dis, javax.imageio.stream.ImageInputStream iis, int numberOfFrames, java.lang.String tsuid)
           
 
Method Summary
 int getNumberOfDataFragments()
           
 com.sun.media.imageio.stream.StreamSegment getStreamSegment(long pos, int len)
           
 void getStreamSegment(long pos, int len, com.sun.media.imageio.stream.StreamSegment seg)
           
 byte[] readFrame(com.sun.media.imageio.stream.SegmentedImageInputStream siis, int frame)
           
 void seekFooter()
           
 void seekFrame(com.sun.media.imageio.stream.SegmentedImageInputStream siis, int frame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemParser

public ItemParser(DicomInputStream dis,
                  javax.imageio.stream.ImageInputStream iis,
                  int numberOfFrames,
                  java.lang.String tsuid)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getNumberOfDataFragments

public int getNumberOfDataFragments()

getStreamSegment

public com.sun.media.imageio.stream.StreamSegment getStreamSegment(long pos,
                                                                   int len)
Specified by:
getStreamSegment in interface com.sun.media.imageio.stream.StreamSegmentMapper

getStreamSegment

public void getStreamSegment(long pos,
                             int len,
                             com.sun.media.imageio.stream.StreamSegment seg)
Specified by:
getStreamSegment in interface com.sun.media.imageio.stream.StreamSegmentMapper

seekFrame

public void seekFrame(com.sun.media.imageio.stream.SegmentedImageInputStream siis,
                      int frame)
               throws java.io.IOException
Throws:
java.io.IOException

readFrame

public byte[] readFrame(com.sun.media.imageio.stream.SegmentedImageInputStream siis,
                        int frame)
                 throws java.io.IOException
Throws:
java.io.IOException

seekFooter

public void seekFooter()
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 dcm4che. All Rights Reserved.