Interface LSCFileParser

  • All Known Implementing Classes:
    DefaultLSCFileParser

    public interface LSCFileParser
    This interface defines a parser for VOMS LSC files.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      LSCFile parse​(java.lang.String vo, java.lang.String hostname, java.io.File file)
      Parses an LSC file.
      LSCFile parse​(java.lang.String vo, java.lang.String hostname, java.io.InputStream is)
      Parses an LSC file from a generic input stream.
    • Method Detail

      • parse

        LSCFile parse​(java.lang.String vo,
                      java.lang.String hostname,
                      java.io.File file)
        Parses an LSC file.
        Parameters:
        vo - the name of the VO this LSC file is about
        hostname - the name of host this LSC file is about
        file - the LSC file
        Returns:
        an LSCFile object
        Throws:
        VOMSError - in case of parsing errors
      • parse

        LSCFile parse​(java.lang.String vo,
                      java.lang.String hostname,
                      java.io.InputStream is)
        Parses an LSC file from a generic input stream.
        Parameters:
        vo - the name of the VO this LSC file is about
        hostname - the name of host this LSC file is about
        is - an InputStream that contains the LSC information
        Returns:
        an LSCFile object
        Throws:
        VOMSError - in case of parsing errors