Examples of dispose()


Examples of it.baeyens.arduino.arduino.Serial.dispose()

  try {
      Thread.sleep(openTime);
  } catch (InterruptedException e) {// Jaba is not going to write this
            // code
  }
  serialPort.dispose();
  return true;
    }

    /**
     * Waits for a serial port to appear. It is assumed that the default comport is not available on the system
View Full Code Here

Examples of it.geosolutions.imageio.plugins.turbojpeg.TurboJpegImageWriter.dispose()

        try {
            writer.setOutput(outStream);
            writer.write(null, new IIOImage(image, null, null), iwp);
        } finally {
            try {
                writer.dispose();
            } catch (Throwable e) {
                if (LOGGER.isLoggable(Level.FINE))
                    LOGGER.log(Level.FINE, e.getLocalizedMessage(), e);
            }
            try {
View Full Code Here

Examples of it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.dispose()

        final TIFFImageReader reader = (it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader) new TIFFImageReaderSpi()
                .createReaderInstance();
        reader.setInput(ImageIO.createImageInputStream(tiff));
        final BufferedImage image = reader.read(0);
        reader.dispose();

        final MathTransform transform = new WorldFileReader(tfw).getTransform();
        final GridCoverage2D coverage2D = CoverageFactoryFinder.getGridCoverageFactory(null)
                .create("coverage",
                        image,
View Full Code Here

Examples of it.geosolutions.imageioimpl.plugins.tiff.TIFFImageWriter.dispose()

                            }      
                        }
                       
                        try{
                                if (writer!=null)
                                        writer.dispose();
                        }catch (Throwable e) {
                            // eat me
                            if(LOGGER.isLoggable(Level.WARNING)){
                                LOGGER.log(Level.WARNING,e.getLocalizedMessage(),e);
                            }    
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.dispose()

            if ( factory.fieldType( field[ i ] ) == FieldType.INT ) assertEquals( ( (Number)payloadContent[ i ].get( k ) ).longValue(), ( (Number)indexIterator.payload().get() )
                .longValue() );
            else assertEquals( payloadContent[ i ].get( k ), indexIterator.payload().get() );
            k++;
          }
          indexIterator.dispose();
          assertEquals( k, payloadContent[ i ].size() );
        }
      }
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.search.DocumentIterator.dispose()

     
      count = scorer != null?
          getScoredResults( documentIterator, currOffset, currLength, lastMinScore, results, alreadySeen ) :
            getResults( documentIterator, currOffset, currLength, results, alreadySeen );
         
      documentIterator.dispose();
      if ( results.size() > 0 ) lastMinScore = results.get( results.size() - 1 ).score;
     
      total += count;
      currOffset -= count;
View Full Code Here

Examples of it.unimi.dsi.mg4j.search.NotDocumentIterator.dispose()

    assertEquals( 5, notDocumentIterator.document() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 6, notDocumentIterator.nextDocument() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertFalse( notDocumentIterator.hasNext() );
    notDocumentIterator.dispose();
  }
 
  public void testSkip() throws IOException {
    DocumentIterator i = new IntArrayDocumentIterator( new int[] { 2, 4, 7 },
        new int[][][] {
View Full Code Here

Examples of it.unina.seclab.jafimon.ui.CfgEditor.dispose()

        theCoordinator.selectConfig(fullName);
        currentStatus = CFG_DEFINED_STATUS;
      } catch (Exception e) {
        logger.debug("UI ha rilevato una eccezione in defineConfig");
        JOptionPane.showMessageDialog(this, "Impossibile creare la configurazione. Il messaggio di errore e':\n\"" + e.getLocalizedMessage() + "\"","Eccezione", JOptionPane.ERROR_MESSAGE);
        ed.dispose();
        return;
      }
      ed.dispose();
     
      if (wizardMode) {
View Full Code Here

Examples of java.awt.CompositeContext.dispose()

                                            w, h, 0, 0, null);
                dstRas = dstRas.createWritableChild(span[0], span[1],
                                                    w, h, 0, 0, null);
                ctx.compose(srcRas, dstRas, dstRas);
            }
            ctx.dispose();
        }
    }

    private static class GeneralMaskBlit extends Blit {
        MaskBlit performop;
View Full Code Here

Examples of java.awt.Dialog.dispose()

           
            // Close & dispose the the dialog
            Dialog dialog = (Dialog)project2Dialog.get( project );
            if ( dialog != null ) {
                dialog.setVisible(false);
                dialog.dispose();
            }
        }       
       
        // Listening to window events ------------------------------------------
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.