Class UtilsResources


  • public final class UtilsResources
    extends java.lang.Object

    Class that provides functionality to control the close of resources.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 13/01/2014.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void safeCloseInputStream​(java.io.InputStream is)
      Method that handles the closing of a InputStream resource.
      static void safeCloseOutputStream​(java.io.OutputStream os)
      Method that handles the closing of a OutputStream resource.
      static void safeClosePDFStamper​(com.lowagie.text.pdf.PdfStamper stamper)
      Method that handles the closing of a PdfStamper resource.
      static void safeCloseSocket​(java.net.Socket socket)
      Method that handles the closing of a Socket resource.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • safeCloseInputStream

        public static void safeCloseInputStream​(java.io.InputStream is)
        Method that handles the closing of a InputStream resource.
        Parameters:
        is - Parameter that represents a InputStream resource.
      • safeCloseOutputStream

        public static void safeCloseOutputStream​(java.io.OutputStream os)
        Method that handles the closing of a OutputStream resource.
        Parameters:
        os - Parameter that represents a OutputStream resource.
      • safeCloseSocket

        public static void safeCloseSocket​(java.net.Socket socket)
        Method that handles the closing of a Socket resource.
        Parameters:
        socket - Parameter that represents a Socket resource.
      • safeClosePDFStamper

        public static void safeClosePDFStamper​(com.lowagie.text.pdf.PdfStamper stamper)
        Method that handles the closing of a PdfStamper resource.
        Parameters:
        stamper - Parameter that represents a PdfStamper resource.