@Override public void close() throws IOException { if (reader != null) { reader.close(); } super.close(); }
@Override public void close() throws IOException { if (inStream != null) { inStream.close(); } super.close(); } }
@Override public void close() throws IOException { if (imageInputStream != null) { imageInputStream.close(); } super.close(); } }
@Override public void close() throws IOException { for (ImageInputStream inStream : bandImageInputStreamMap.values()) { if (inStream != null) { inStream.close(); } } super.close(); } }
@Override public void close() throws IOException { System.gc(); for (WeakReference<Product> ref : tileRefs) { Product product = ref.get(); if (product != null) { product.closeIO(); product = null; } ref.clear(); } super.close(); }
@Override public void close() throws IOException { System.gc(); for (WeakReference<Product> ref : tileRefs) { Product product = ref.get(); if (product != null) { product.closeIO(); product = null; } ref.clear(); } super.close(); }
@Override public void close() throws IOException { super.close(); imgIOFile.close(); }
@Override public void close() throws IOException { super.close(); if (binaryReader != null) binaryReader.close(); }
@Override public void close() throws IOException { super.close(); for (Product product : associatedProducts) { product.dispose(); product = null; } associatedProducts.clear(); virtualDir.close(); geopositions = null; associatedProducts = null; }
@Override public void close() throws IOException { if (product != null) { product = null; variableMap.clear(); variableMap = null; netcdfFile.close(); netcdfFile = null; } super.close(); }
@Override public void close() throws IOException { if (productDirectory != null) { productDirectory.close(); } if (imageInputStreamSpi != null) { IIORegistry.getDefaultInstance().deregisterServiceProvider(imageInputStreamSpi); } super.close(); }
@Override public void close() throws IOException { if (productDirectory != null) { productDirectory.close(); } if (channelImageInputStreamSpi != null) { IIORegistry.getDefaultInstance().deregisterServiceProvider(channelImageInputStreamSpi); } super.close(); }
@Override public void close() throws IOException { if (internalReader != null) { internalReader.close(); } super.close(); if (channelImageInputStreamSpi != null) { IIORegistry.getDefaultInstance().deregisterServiceProvider(channelImageInputStreamSpi); } }
@Override public void close() throws IOException { //JAI.getDefaultInstance().getTileCache().flush(); if (product != null) { for (Band band : product.getBands()) { MultiLevelImage sourceImage = band.getSourceImage(); if (sourceImage != null) { sourceImage.reset(); sourceImage.dispose(); sourceImage = null; } } } List<Path> files = PathUtils.listFiles(tmpFolder); tmpFolder.toFile().deleteOnExit(); if (files != null) { for (Path file : files) { file.toFile().deleteOnExit(); } } super.close(); }
@Override public void close() throws IOException { System.gc(); if (product != null) { for (Band band : product.getBands()) { MultiLevelImage sourceImage = band.getSourceImage(); if (sourceImage != null) { sourceImage.reset(); sourceImage.dispose(); } } } if (this.productDirectory != null) { this.productDirectory.close(); this.productDirectory = null; } if (this.metadata != null) { this.metadata = null; } if (this.tilesPanchromatic != null) { this.tilesPanchromatic.clear(); this.tilesPanchromatic = null; } if (this.tilesMultiSpectral != null) { this.tilesMultiSpectral.clear(); this.tilesMultiSpectral = null; } super.close(); }
super.close();
@Override public void close() throws IOException { if (product != null) { for (Band band : product.getBands()) { MultiLevelImage sourceImage = band.getSourceImage(); if (sourceImage != null) { sourceImage.reset(); sourceImage.dispose(); sourceImage = null; } } } if(inputPath != null) { inputPath.close(); } super.close(); }