Class TdsValidator

java.lang.Object
org.ctan.site.services.upload.util.TdsValidator

public class TdsValidator extends Object
This class constitutes a validator for TDS archives.
  • Field Details

    • TDS

      protected static final Pattern TDS
      The field TDS contains the specification if the TDS tree.
  • Constructor Details

    • TdsValidator

      public TdsValidator()
  • Method Details

    • check

      public void check(Messages messages, String name, String pkg, byte[] content)
      The method check provides means to perform the checks.
      Parameters:
      messages - the list of messages
      name - the name of the file
      pkg - the package
      content - the content
    • check

      public void check(Messages messages, String archiveName, String pkg, ZipInputStream zip)
      This method inspects the TDS archive and adds messages if something unusual is found.
      Parameters:
      messages - the messages
      archiveName - the name of the archive under inspection
      pkg - the name of the package
      zip - the content of the TDS archive