Package net.tnemc.plugincore.core.utils
Class IOUtil
java.lang.Object
net.tnemc.plugincore.core.utils.IOUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindFileInsensitive
(String file, File directory) Used to find the absolute path based on a case-insensitive file name, in a directory.static File[]
Used to read the current TNE release from tnemc.net.static TrustManager[]
Used to trust self-signed SSL certificates during an HTTP stream reading session.
-
Constructor Details
-
IOUtil
public IOUtil()
-
-
Method Details
-
selfCertificates
Used to trust self-signed SSL certificates during an HTTP stream reading session.- Returns:
- The
TrustManager
array.
-
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
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
-