public static class PolicyUtils.IO
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static PolicyLogger |
LOGGER |
| Constructor and Description |
|---|
IO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeResource(java.io.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(javax.xml.stream.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. |
private static final PolicyLogger LOGGER
public static void closeResource(java.io.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(javax.xml.stream.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 closed