Class DefaultLSCFileParser

java.lang.Object
org.italiangrid.voms.store.impl.DefaultLSCFileParser
All Implemented Interfaces:
LSCFileParser

public class DefaultLSCFileParser extends Object implements LSCFileParser
The default implementation for the LSC file parser.
  • Field Details

  • Constructor Details

    • DefaultLSCFileParser

      public DefaultLSCFileParser()
  • Method Details

    • checkFileExistanceAndReadabilty

      private void checkFileExistanceAndReadabilty(File f)
    • parse

      public LSCFile parse(String vo, String hostname, String filename)
    • parse

      public LSCFile parse(String vo, String hostname, InputStream is)
      Description copied from interface: LSCFileParser
      Parses an LSC file from a generic input stream.
      Specified by:
      parse in interface LSCFileParser
      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
    • parse

      public LSCFile parse(String vo, String hostname, File file)
      Description copied from interface: LSCFileParser
      Parses an LSC file.
      Specified by:
      parse in interface LSCFileParser
      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