DicomInputStream extends InputStream { public DicomObject readDataSet() throws IOException { return parser.readDataSet(); } DicomInputStream(InputStream in); DicomEncoding getEncoding(); DicomInputStream withEncoding(DicomEncoding encoding); DicomInputStream withLimit(int limit); DicomInputStream withParseItems(Predicate<DicomElement> parseItemsPredicate); DicomInputStream withParseItemsLazy(int seqTag); DicomInputStream withBulkData(Predicate<DicomElement> bulkDataPredicate); DicomInputStream withBulkDataURIProducer(Function<DicomInputStream, String> bulkDataURIProducer); DicomInputStream withBulkDataURI(Path sourcePath); DicomInputStream withInputHandler(DicomInputHandler handler); DicomInputHandler getInputHandler(); DicomInputStream spoolBulkDataTo(Path path); DicomInputStream spoolBulkData(Supplier<Path> bulkDataSpoolPathSupplier); long getStreamPosition(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override void close(); DicomObject readFileMetaInformation(); DicomObject getFileMetaInformation(); DicomObject readCommandSet(); DicomObject readDataSet(); boolean readDataSet(DicomObject dcmObj); StringBuilder promptFilePreambleTo(StringBuilder appendTo, int maxLength); StringBuilder promptTo(DicomElement dcmElm, StringBuilder appendTo, int maxLength); StringBuilder promptTo(DataFragment dataFragment, StringBuilder appendTo, int maxLength); void loadValueFromStream(); void writeValueTo(DicomElement dcmElm, DicomOutputStream dos); void skipBytes(int off, int length, OutputStream out); String bulkDataURI(); static boolean isBulkData(DicomElement el);  }
@Test void readDataSetEVR_BE() throws IOException { assertEquals(DicomEncoding.EVR_BE, readDataSet(EVR_BE)); }
@Test void readDataSetDEFL() throws IOException { assertEquals(DicomEncoding.DEFL_EVR_LE, readDataSet("preamble_fmi_defl.dcm")); }
@Test void readDataSetIVR_LE() throws IOException { assertEquals(DicomEncoding.IVR_LE, readDataSet(IVR_LE)); }
@Test void readDataSetEVR_LE() throws IOException { assertEquals(DicomEncoding.EVR_LE, readDataSet(EVR_LE)); }