@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (service != null) { service.close(); } service = null; } }
/** * @see loci.formats.IFormatReader#openBytes(int, byte[], int, int, int, int) */ @Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); service.getTile(buf, x, y, w, h); return buf; }
!file.equals(initializedFile)) service.close(); if (restartMarkers.containsKey(file)) { service.setRestartMarkers(restartMarkers.get(file)); service.setRestartMarkers(null); service.initialize(s, tile.width, tile.height); restartMarkers.put(file, service.getRestartMarkers()); byte[] b = new byte[rowLen * intersection.height]; service.getTile(b, tileX, tileY, intersection.width, intersection.height);
@Override public void reopenFile() throws IOException { if (in != null) { in.close(); } in = new RandomAccessInputStream(currentId); in.seek(0); service = new JPEGTurboServiceImpl(); try { service.initialize(in, getSizeX(), getSizeY()); } catch (ServiceException se) { service = null; throw new IOException("Could not initialize JPEG service", se); } }
!file.equals(initializedFile)) service.close(); if (restartMarkers.containsKey(file)) { service.setRestartMarkers(restartMarkers.get(file)); service.setRestartMarkers(null); service.initialize(s, tile.width, tile.height); restartMarkers.put(file, service.getRestartMarkers()); byte[] b = new byte[rowLen * intersection.height]; service.getTile(b, tileX, tileY, intersection.width, intersection.height);
@Override public void reopenFile() throws IOException { if (in != null) { in.close(); } in = new RandomAccessInputStream(currentId); in.seek(0); service = new JPEGTurboServiceImpl(); try { service.initialize(in, getSizeX(), getSizeY()); } catch (ServiceException se) { service = null; throw new IOException("Could not initialize JPEG service", se); } }
service.close(); long[] markers = ifd.getIFDLongArray(MARKER_TAG); if (!use64Bit) { service.setRestartMarkers(markers); service.initialize(in, getSizeX(), getSizeY()); initializedPlane = no; service.getTile(buf, x, y, w, h); return buf;
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (service != null) { service.close(); } service = null; } }
/** * @see loci.formats.IFormatReader#openBytes(int, byte[], int, int, int, int) */ @Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); service.getTile(buf, x, y, w, h); return buf; }
service.close(); long[] markers = ifd.getIFDLongArray(MARKER_TAG); if (!use64Bit) { service.setRestartMarkers(markers); service.initialize(in, getSizeX(), getSizeY()); initializedPlane = no; service.getTile(buf, x, y, w, h); return buf;
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { tileFiles = null; files.clear(); if (service != null) { service.close(); service = null; } restartMarkers.clear(); initializedSeries = -1; initializedPlane = -1; nRows = 0; nCols = 0; initializedFile = null; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { tileFiles = null; files.clear(); if (service != null) { service.close(); service = null; } restartMarkers.clear(); initializedSeries = -1; initializedPlane = -1; nRows = 0; nCols = 0; initializedFile = null; } }
@Override public void close(boolean fileOnly) throws IOException { if (!fileOnly) { service.close(); initializedSeries = -1; initializedPlane = -1; sizeZ = 1; pyramidHeight = 1; magnification = null; serialNumber = null; instrumentModel = null; if (tiffParser != null) { tiffParser.getStream().close(); } } super.close(fileOnly); }
@Override public void close(boolean fileOnly) throws IOException { if (!fileOnly) { service.close(); initializedSeries = -1; initializedPlane = -1; sizeZ = 1; pyramidHeight = 1; magnification = null; serialNumber = null; instrumentModel = null; if (tiffParser != null) { tiffParser.getStream().close(); } } super.close(fileOnly); }