Class PolicyUtils.IO
- java.lang.Object
-
- com.sun.xml.ws.policy.privateutil.PolicyUtils.IO
-
- Enclosing class:
- PolicyUtils
public static class PolicyUtils.IO extends Object
-
-
Constructor Summary
Constructors Constructor Description IO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseResource(Closeable resource)If theresourceis notnull, this method will try to close theresourceinstance and log warning about any unexpectedIOExceptionthat may occur.static voidcloseResource(XMLStreamReader reader)If thereaderis notnull, this method will try to close thereaderinstance and log warning about any unexpectedIOExceptionthat may occur.
-
-
-
Method Detail
-
closeResource
public static void closeResource(Closeable resource)
If theresourceis notnull, this method will try to close theresourceinstance and log warning about any unexpectedIOExceptionthat may occur.- Parameters:
resource- resource to be closed
-
closeResource
public static void closeResource(XMLStreamReader reader)
If thereaderis notnull, this method will try to close thereaderinstance and log warning about any unexpectedIOExceptionthat may occur.- Parameters:
reader- resource to be closed
-
-