Class CloseUtil

java.lang.Object
ch.qos.logback.core.util.CloseUtil

@Deprecated(since="2022-01-27") public class CloseUtil extends Object
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
Static utility method for Closeable objects.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated.
    Closes a closeable while suppressing any IOException that occurs.
    static void
    closeQuietly(ServerSocket serverSocket)
    Deprecated.
    Closes a server socket while suppressing any IOException that occurs.
    static void
    Deprecated.
    Closes a socket while suppressing any IOException that occurs.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CloseUtil

      public CloseUtil()
      Deprecated.
  • Method Details

    • closeQuietly

      public static void closeQuietly(Closeable closeable)
      Deprecated.
      Closes a closeable while suppressing any IOException that occurs.
      Parameters:
      closeable - the socket to close
    • closeQuietly

      public static void closeQuietly(Socket socket)
      Deprecated.
      Closes a socket while suppressing any IOException that occurs.
      Parameters:
      socket - the socket to close
    • closeQuietly

      public static void closeQuietly(ServerSocket serverSocket)
      Deprecated.
      Closes a server socket while suppressing any IOException that occurs.
      Parameters:
      serverSocket - the socket to close