org.schmant.project.intellij
Class IprFileParserImpl

java.lang.Object
  extended by org.schmant.project.intellij.IprFileParserImpl
All Implemented Interfaces:
IprFileParser

public class IprFileParserImpl
extends Object
implements IprFileParser

Default implementation of IprFileParser.

Since:
0.7.1
Author:
Karl Gustafsson

Constructor Summary
IprFileParserImpl()
          Default constructor.
IprFileParserImpl(Map<String,IprFileVersionParser> pm)
          Use this constructor to add more ipr file version parsers in addition to the default parsers.
 
Method Summary
 IprSettings parse(DirectoryView wosRoot, ReadableFile f)
          Parse the contents of the supplied .ipr file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IprFileParserImpl

public IprFileParserImpl()
Default constructor.


IprFileParserImpl

public IprFileParserImpl(Map<String,IprFileVersionParser> pm)
Use this constructor to add more ipr file version parsers in addition to the default parsers.

Method Detail

parse

public IprSettings parse(DirectoryView wosRoot,
                         ReadableFile f)
                  throws IOException
Description copied from interface: IprFileParser
Parse the contents of the supplied .ipr file.

Specified by:
parse in interface IprFileParser
Parameters:
wosRoot - The workspace root directory.
f - The .ipr file.
Returns:
Settings parsed from the file.
Throws:
IOException - On I/O errors.