org.glassfish.jersey.internal.util
Class Closing

java.lang.Object
  extended by org.glassfish.jersey.internal.util.Closing

public class Closing
extends Object

A helper class to aid the closing of InputStream.

Author:
Paul Sandoz

Constructor Summary
Closing(InputStream in)
           
 
Method Summary
 void invoke(Closure<InputStream> c)
           
static Closing with(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closing

public Closing(InputStream in)
Method Detail

with

public static Closing with(InputStream in)

invoke

public void invoke(Closure<InputStream> c)
            throws IOException
Throws:
IOException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.