Class Closing
- java.lang.Object
-
- org.glassfish.jersey.internal.util.Closing
-
public class Closing extends Object
A helper class to aid the closing ofInputStream.- Author:
- Paul Sandoz
-
-
Constructor Summary
Constructors Constructor Description Closing(InputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvoke(Closure<InputStream> c)static Closingwith(InputStream in)
-
-
-
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
-
-