@Override public void close() throws IOException { if (reader != null) { reader.close(); } super.close(); }
@Override public TreeNode<File> getProductComponents() { if (zipDir.isCompressed()) { return super.getProductComponents(); } else { TreeNode<File> result = super.getProductComponents(); addProductComponentIfNotPresent(metadata.getFileName(), result); addProductComponentIfNotPresent(metadata.getGeolayerFileName(), result); //addProductComponentIfNotPresent(metadata.getRasterFileName(), result); addProductComponentIfNotPresent(SpotConstants.SPOTSCENE_METADATA_FILE, result);//WARN: it should be imageMetadata.getFileName() for (String name : imageMetadata.getRasterFileNames()) addProductComponentIfNotPresent(name, result); return result; } }
@Override protected Product readProductNodesImpl() throws IOException { productDirectory = getInput(super.getInput()); if (getReaderPlugIn().getDecodeQualification(super.getInput()) == DecodeQualification.UNABLE) { throw new IOException("The selected product cannot be read with the current reader.");
@Override public TreeNode<File> getProductComponents() { if (productDirectory.isCompressed()) { return super.getProductComponents(); } else { TreeNode<File> result = super.getProductComponents();
@Override protected Product readProductNodesImpl() throws IOException { if (getReaderPlugIn().getDecodeQualification(super.getInput()) == DecodeQualification.UNABLE) { throw new IOException("The selected product cannot be read with the current reader.");
@Override public void close() throws IOException { if (imageInputStream != null) { imageInputStream.close(); } super.close(); } }
@Override public TreeNode<File> getProductComponents() { TreeNode<File> result = super.getProductComponents(); if (input.isCompressed()) { return result; } else { for (String inputFile : imageMetadata.getTiffFiles().values()) { try { TreeNode<File> productFile = new TreeNode<File>(inputFile); productFile.setContent(input.getFile(inputFile)); result.addChild(productFile); } catch (IOException e) { e.printStackTrace(); } } for (String inputFile : imageMetadata.getMaskFiles().values()) { try { TreeNode<File> productFile = new TreeNode<File>(inputFile); productFile.setContent(input.getFile(inputFile)); result.addChild(productFile); } catch (IOException e) { e.printStackTrace(); } } return result; } }
@Override public void close() throws IOException { if (inStream != null) { inStream.close(); } super.close(); } }
@Override public TreeNode<File> getProductComponents() { if (productDirectory.isCompressed()) { return super.getProductComponents(); } else { TreeNode<File> result = super.getProductComponents();
@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 TreeNode<File> getProductComponents() { if (productDirectory.isCompressed()) { return super.getProductComponents(); } else { TreeNode<File> result = super.getProductComponents();
@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 TreeNode<File> getProductComponents() { TreeNode<File> result = super.getProductComponents(); if (productDirectory.isCompressed()) { return result;
@Override public void close() throws IOException { for (ImageInputStream inStream : bandImageInputStreamMap.values()) { if (inStream != null) { inStream.close(); } } 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(); }