@Override public void close(boolean fileOnly) throws IOException { for (int i=0; i<readers.length; i++) readers[i].close(fileOnly); if (!fileOnly) currentId = null; }
@Override public void close(boolean fileOnly) throws IOException { reader.close(fileOnly); if (!fileOnly) { chanMin = null; chanMax = null; planeMin = null; planeMax = null; minMaxDone = null; } }
@Override public void close(boolean fileOnly) throws IOException { reader.close(fileOnly); if (!fileOnly) { chanMin = null; chanMax = null; planeMin = null; planeMax = null; minMaxDone = null; } }
@Override public void close(boolean fileOnly) throws IOException { for (int i=0; i<readers.length; i++) readers[i].close(fileOnly); if (!fileOnly) currentId = null; }
@Override public void close() throws IOException { reader.close(); }
@Override public void close(boolean fileOnly) throws IOException { reader.close(fileOnly); }
@AfterClass public void tearDown() throws Exception { reader.close(); }
@Override public void close(final boolean fileOnly) throws IOException { super.close(fileOnly); if (reader != null) reader.close(fileOnly); }
@Override public void close() { super.close(); try { r.close(); } catch (IOException e) { } }
@AfterClass public void tearDown() throws Exception { Location.mapId(id, null); reader.close(); }
@Override public void close() { super.close(); try { r.close(); } catch (IOException e) { } }
@Override public void finish() { if (reader != null) { try { reader.close(); } catch (IOException e) { throw helper.cancel(new ERR(), e, "used-files-fail"); } finally { reader = null; } } }
@Override public void windowClosed(WindowEvent e) { try { myReader.close(); myWriter.close(); if (canCloseReader) { in.close(); } } catch (IOException io) { } }
@Override public void windowClosed(WindowEvent e) { try { myReader.close(); myWriter.close(); if (canCloseReader) { in.close(); } } catch (IOException io) { } }
/** * Overridden to delete the files. * * @see AbstractServerTest#tearDown() */ @Override @AfterClass public void tearDown() throws Exception { downgrades.clear(); upgrades.clear(); reader.close(); }
public void checkImage() throws FormatException, IOException { IFormatReader r = new ImageReader(); r.setId(outFile.getAbsolutePath()); assertEquals(r.getSizeX(), 512); r.close(); }
@Test public void testSinglePyramidBigTiff() throws FormatException, IOException { writePyramid(files[1].getAbsolutePath(), new int[] {8}, new int[] {8}, 1, 0, false, true); IFormatReader reader = getReader(1); try { assertEquals(reader.getSeriesCount(), 1); assertEquals(reader.getResolutionCount(), RESOLUTION_COUNT); assertTrue(checkPixels(reader)); } finally { reader.close(); } }