Class IOUtil

java.lang.Object
net.tnemc.plugincore.core.utils.IOUtil

public class IOUtil extends Object
  • Constructor Details

  • Method Details

    • selfCertificates

      public static TrustManager[] selfCertificates()
      Used to trust self-signed SSL certificates during an HTTP stream reading session.
      Returns:
      The TrustManager array.
    • readVersion

      public static Optional<String> readVersion()
      Used to read the current TNE release from tnemc.net.
      Returns:
      The version read, or an empty Optional if the call timed out.
    • findFileInsensitive

      public static Optional<String> findFileInsensitive(String file, File directory)
      Used to find the absolute path based on a case-insensitive file name, in a directory.
      Parameters:
      file - The file name to use for the search.
      directory - The directory to search in.
      Returns:
      An optional containing the path, or an empty optional if unable to locate the file in the directory.
    • getYAMLs

      public static File[] getYAMLs(File directory)