Uses of Record Class
opennlp.tools.util.ResourceInstaller.Limits
Packages that use ResourceInstaller.Limits
-
Uses of ResourceInstaller.Limits in opennlp.tools.util
Fields in opennlp.tools.util declared as ResourceInstaller.LimitsModifier and TypeFieldDescriptionstatic final ResourceInstaller.LimitsResourceInstaller.Limits.DEFAULTThe limits applied when none are given: 20 second connect timeout, 60 second read timeout, at most 5 redirects, a 1 GiB download limit, a 4 GiB expansion limit, 100000 archive entries, and an expansion ratio of 100.Methods in opennlp.tools.util that return ResourceInstaller.LimitsMethods in opennlp.tools.util with parameters of type ResourceInstaller.LimitsModifier and TypeMethodDescriptionprivate static voidResourceInstaller.download(URI source, Path file, ResourceInstaller.Limits limits) Fetches the source into the given file, bounded by the download limit.private static voidResourceInstaller.downloadHttp(URI source, Path file, ResourceInstaller.Limits limits, ResourceInstaller.Budget budget) Fetches an http or https source with connection and read timeouts, following at most the allowed number of redirects under the redirect policy, checking any declared content length against the download limit before reading the body, and bounding the transferred bytes against the same limit.private static ResourceInstaller.BudgetResourceInstaller.expansionBudget(long compressedSize, ResourceInstaller.Limits limits, ResourceInstaller.Budget budget) Bounds expansion by the ratio as well as the absolute limit, so a small source cannot expand to the whole absolute limit.voidDictionaryCatalog.install(String id, Path targetDirectory, boolean remoteDownloadEnabled, ResourceInstaller.Limits limits) Installs a catalog entry intotargetDirectorywhen remote downloads are enabled.(package private) static PathResourceInstaller.install(URI source, Path targetDirectory, String checksum, String name, ResourceInstaller.Limits limits) Validates the request, downloads and verifies the resource, and installs it from a staging directory.static PathResourceInstaller.install(URI source, Path targetDirectory, String checksum, ResourceInstaller.Limits limits) Fetches, verifies, and unpacks a resource under the givenResourceInstaller.Limits.private static voidResourceInstaller.unpack(Path downloaded, String name, Path staging, ResourceInstaller.Limits limits) Detects the content format from its leading bytes and unpacks accordingly, bounding the total expanded bytes against the expansion limit.