Class PolicyUtils.IO
java.lang.Object
com.sun.xml.ws.policy.privateutil.PolicyUtils.IO
- Enclosing class:
- PolicyUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
closeResource
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
If thereaderis notnull, this method will try to close thereaderinstance and log warning about any unexpectedIOExceptionthat may occur.- Parameters:
reader- resource to be closed
-