nct.parsers
Class SIFParser

java.lang.Object
  extended by nct.parsers.SIFParser

public class SIFParser
extends java.lang.Object

A simple class that provides a method of parse a SIF file.


Constructor Summary
SIFParser()
           
 
Method Summary
static java.util.List<java.lang.String[]> parse(java.lang.String fileName)
          A simple method that parses a SIF formatted file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIFParser

public SIFParser()
Method Detail

parse

public static java.util.List<java.lang.String[]> parse(java.lang.String fileName)
A simple method that parses a SIF formatted file.

Parameters:
fileName - The SIF file to be parsed.
Returns:
A list of arrays of Strings where each element in the array represents one column in the SIF file. This parser expects the SIF file to be in "nodeA value nodeB" format where value can be anything as long as it doesn't contain any spaces.