Class PolicyUtils.IO

    • Constructor Detail

      • IO

        public IO()
    • Method Detail

      • closeResource

        public 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.
        Parameters:
        resource - resource to be closed
      • closeResource

        public 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.
        Parameters:
        reader - resource to be closed