Examples of dispose()


Examples of java.nio.channels.SocketChannel.dispose()

        final IChannel channel = (IChannel) it.next();
        // dispose the channel in a SafeRunner so exceptions don't
        // prevent us from disposing other channels
        SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            channel.dispose();
          }

          public void handleException(Throwable t) {
            log(new Status(IStatus.ERROR, Util.PLUGIN_ID,
                "Error disposing channel: " + channel, t)); //$NON-NLS-1$
View Full Code Here

Examples of javafx.beans.binding.BooleanBinding.dispose()

                box.highlightTextFillProperty().unbind();
                box.wrapTextProperty().unbind();
                box.graphicFactoryProperty().unbind();

                box.caretVisibleProperty().unbind();
                cellCaretVisible.dispose();
                hasCaret.dispose();
                caretPositionSub.unsubscribe();

                box.selectionProperty().unbind();
                cellSelection.dispose();
View Full Code Here

Examples of javax.enterprise.inject.spi.InjectionTarget.dispose()

    public void destroy(Object instance) {
        if (instance != null) {
            AnnotatedType type = manager.createAnnotatedType(instance.getClass());
            InjectionTarget it = manager.createInjectionTarget(type);
            it.dispose(instance);
        }
    }
}
View Full Code Here

Examples of javax.enterprise.inject.spi.Producer.dispose()

        {
            final BeanManagerImpl beanManager = WebBeansContext.currentInstance().getBeanManagerImpl();
            final Producer producer = beanManager.getProducerForJavaEeComponent(instance.object.getClass());
            if (producer != null)
            {
                producer.dispose(instance.object);
            }
            else if (instance.context != null)
            {
                instance.context.release();
            }
View Full Code Here

Examples of javax.imageio.ImageReader.dispose()

      if (iter.hasNext()) {
  ImageReader reader = iter.next();
  reader.setInput(iis);
  iImage = reader.read(0);
  iis.close();
  reader.dispose();
      } else {
  throw new IllegalStateException("no ImageReader for given format");
      }
    } else {
      throw new IllegalStateException("failed to create ImageInputStream");
View Full Code Here

Examples of javax.imageio.ImageWriter.dispose()

                    writer.setOutput(ios);
                    this.write(wrapper, writer, quality, alpha);
                 } finally {
                    if (ios != null)
                        ios.close();
                    writer.dispose();
                }
            }
        }
    }
View Full Code Here

Examples of javax.jcr.Binary.dispose()

            content.setProperty(Property.JCR_LAST_MODIFIED, date);
            content.setProperty(Property.JCR_DATA, binary);
            return file;
        } finally {
            binary.dispose();
        }
    }

    /**
     * Returns a string representation of the given item. The returned string
View Full Code Here

Examples of javax.media.jai.PlanarImage.dispose()

            } catch(Exception e) {
                // Ignore it.
            }
        } else {
            // Invoke dispose() directly.
            src.dispose();
        }
    }
}
View Full Code Here

Examples of javax.media.jai.RenderedImageAdapter.dispose()

                    encodeParam);
            try {
                encoder.encode( thumbImage );
                os.close();
                // origImage.dispose();
                thumbImage.dispose();
            } catch (Exception e) {
                fail( "Error writing thumbnail: " + e.getMessage() );
            }
        } catch (FileNotFoundException ex) {
            ex.printStackTrace();
View Full Code Here

Examples of javax.media.jai.RenderedOp.dispose()

            log.error("Error while loading image (JAI): " + ex.getMessage(), ex);
        } finally {
            IOUtils.closeQuietly(inputStream);
            inputStream = null;
            if (imageOp != null) {
                imageOp.dispose();
            }
            if (seekableInput != null) {
                IOUtils.closeQuietly(seekableInput);
            }
        }
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.