org.italiangrid.voms.store.impl
Class DefaultLSCFileParser

java.lang.Object
  extended by 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.

Author:
Andrea Ceccanti

Field Summary
static String EMPTY_LINE_REGEX
           
 
Constructor Summary
DefaultLSCFileParser()
           
 
Method Summary
 LSCFile parse(String vo, String hostname, File file)
          Parses an LSC file.
 LSCFile parse(String vo, String hostname, InputStream is)
          Parses an LSC file from a generic input stream.
 LSCFile parse(String vo, String hostname, String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LINE_REGEX

public static final String EMPTY_LINE_REGEX
See Also:
Constant Field Values
Constructor Detail

DefaultLSCFileParser

public DefaultLSCFileParser()
Method Detail

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


Copyright © 2013. All Rights Reserved.