Package de.griefed.serverpackcreator.api.utilities.common
The toolbox. Whenever a small operation turns out to be useful in more than one place, it lands here — converting strings to booleans, quoting list-entries, downloading/copying files, reading from JARs, comparing semantic versions, and so on. Each class groups one kind of utility:
File/IO:
FileUtilities,InputStreamUtilities,ZipUtilities,JarUtilities,JarInformation.Text/data:
StringUtilities,ListUtilities,RegexUtilities,BooleanUtilities,JsonUtilities,XmlUtilities.System/web:
SystemUtilities,WebUtilities(also opens links/files/folders — deliberately kept here so plugins can use it under either host),ClassUtilities.Versions:
SemanticVersionComparator,UtilityEnums(e.g. theComparisonenum).Utilities— a convenience aggregate of the above.Exceptions:
InvalidFileTypeException,InvalidLinkException,JarAccessException,JsonException.
See: Description
-
Object Summary Object Description Companion The strings accepted as true or false when reading a boolean property. Companion File-type detection and the platform's path separator. Companion Extraction of files and folders out of the running jar, used to seed the home directory. Companion Cleanup helpers for the list-valued properties, which arrive as delimited strings. Companion Semantic-version comparison, used to decide whether an update is newer. Companion String cleanup and the Mongo URI builder the web backend configures itself from. Companion Which operating system SPC is running on, decided once from os.name. -
Class Summary Class Description BooleanUtilities Utility-class revolving around Booleans. FileUtilities Utility-class revolving around various file-interactions. InvalidFileTypeException Exceptions thrown if a specified de.griefed.serverpackcreator.api.utilities.common.FileType is considered invalid. InvalidLinkException Exceptions thrown if a specified de.griefed.serverpackcreator.api.utilities.common.FileType is considered invalid. JarAccessException Thrown when access to a JAR-file errored. JarInformation Stores values gathered by JarUtilities.jarInformation for easy access. JarUtilities Some utilities used across ServerPackCreator, revolving around interacting with JAR-files. JsonException Exceptions thrown if a JSON value could not successfully be parsed. JsonUtilities JSON-based utility methods for acquiring and working with JSON from files and objects. ListUtilities Utility-class revolving around Lists. SemanticVersionComparator Utility-class to compare to versions of semantic-format against each other and determine whether one is newer than the other. StringUtilities Utility-class revolving around Strings. SystemUtilities Utility-class revolving around the system we are running on. Utilities Access to any and all utility-classes we may have. WebUtilities Utility-class revolving around interactions with web-resources. XmlUtilities Commonly used XML utilities. ClassUtilitiesKt FileUtilitiesKt InputStreamUtilitiesKt ListUtilitiesKt RegexUtilitiesKt StringUtilitiesKt WebUtilitiesKt ZipUtilitiesKt -
Enum Summary Enum Description Comparison FileType File-type to use, identify and report configured Java versions with. FilterType Filter-types by which to filter entries when walking through the files in a directory.