public final class UtilsResourcesCommons
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 java.lang.String |
getPropertiesName(java.lang.String name)
Method that obtains the name of properties file needed.
|
static java.io.File |
getPropertiesResource(java.lang.String propertiesFileName)
Method that obtains properties as a file.
|
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 |
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 java.lang.String getPropertiesName(java.lang.String name)
name - Parameter that represents the properties file name mapping propertie.public static java.io.File getPropertiesResource(java.lang.String propertiesFileName)
throws java.net.URISyntaxException
propertiesFileName - Parameter that represents the properties file name.java.net.URISyntaxException - If the method fails.