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@.
| Modifier and Type | Method and 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. |
public static void safeCloseInputStream(java.io.InputStream is)
InputStream resource.is - Parameter that represents a InputStream resource.public static void safeCloseOutputStream(java.io.OutputStream os)
OutputStream resource.os - Parameter that represents a OutputStream resource.public static void safeCloseSocket(java.net.Socket socket)
Socket resource.socket - Parameter that represents a Socket resource.public static void safeClosePDFStamper(com.lowagie.text.pdf.PdfStamper stamper)
PdfStamper resource.stamper - Parameter that represents a PdfStamper resource.