Class PkgService

java.lang.Object
org.ctan.site.services.texarchive.PkgService

public class PkgService extends Object
The class TexarchiveService contains the service to access the TeX archive directory.
  • Constructor Details

    • PkgService

      public PkgService(@NonNull @NonNull CtanConfiguration config, @NonNull @NonNull ContentService contentService, @NonNull @NonNull PkgStore pkgStore)
      This is the constructor for the class PkgService.
      Parameters:
      config - the CTAN configuration
      contentService - the content service
      pkgStore - the package store
  • Method Details

    • getPkgByKey

      public PkgService.PkgTo getPkgByKey(String key, String lang)
      The method getPkgByKey provides means to retrieve a package by its key.
      Parameters:
      key - the package key
      lang - the language for the notes
      Returns:
      the transport object or null
    • getPkgByPath

      public PkgService.PkgTo getPkgByPath(String path, String lang)
      The method getPkgByPath provides means to retrieve a package by its CTAN path.
      Parameters:
      path - the CTAN path of the package
      lang - the language for the notes
      Returns:
      the transport object or null