Package es.gob.afirma.utils
Class UtilsResources
- java.lang.Object
-
- es.gob.afirma.utils.UtilsResources
-
public final class UtilsResources extends java.lang.ObjectClass 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 voidsafeCloseInputStream(java.io.InputStream is)Method that handles the closing of aInputStreamresource.static voidsafeCloseOutputStream(java.io.OutputStream os)Method that handles the closing of aOutputStreamresource.static voidsafeClosePDFStamper(com.lowagie.text.pdf.PdfStamper stamper)Method that handles the closing of aPdfStamperresource.static voidsafeCloseSocket(java.net.Socket socket)Method that handles the closing of aSocketresource.
-
-
-
Method Detail
-
safeCloseInputStream
public static void safeCloseInputStream(java.io.InputStream is)
Method that handles the closing of aInputStreamresource.- Parameters:
is- Parameter that represents aInputStreamresource.
-
safeCloseOutputStream
public static void safeCloseOutputStream(java.io.OutputStream os)
Method that handles the closing of aOutputStreamresource.- Parameters:
os- Parameter that represents aOutputStreamresource.
-
safeCloseSocket
public static void safeCloseSocket(java.net.Socket socket)
Method that handles the closing of aSocketresource.- Parameters:
socket- Parameter that represents aSocketresource.
-
safeClosePDFStamper
public static void safeClosePDFStamper(com.lowagie.text.pdf.PdfStamper stamper)
Method that handles the closing of aPdfStamperresource.- Parameters:
stamper- Parameter that represents aPdfStamperresource.
-
-