public static class PolicyUtils.IO extends Object
Constructor and Description |
---|
IO() |
Modifier and Type | Method and Description |
---|---|
static void |
closeResource(Closeable resource)
If the
resource is not null , this method will try to close the
resource instance and log warning about any unexpected
IOException that may occur. |
static void |
closeResource(XMLStreamReader reader)
If the
reader is not null , this method will try to close the
reader instance and log warning about any unexpected
IOException that may occur. |
public static void closeResource(Closeable resource)
resource
is not null
, this method will try to close the
resource
instance and log warning about any unexpected
IOException
that may occur.resource
- resource to be closedpublic static void closeResource(XMLStreamReader reader)
reader
is not null
, this method will try to close the
reader
instance and log warning about any unexpected
IOException
that may occur.reader
- resource to be closedCopyright © 2006–2018 Oracle Corporation. All rights reserved.