Class TntpHeaderConstants


  • public class TntpHeaderConstants
    extends Object
    Constants used in the header of TnTp files
    Author:
    gman, markr
    • Constructor Detail

      • TntpHeaderConstants

        public TntpHeaderConstants()
    • Method Detail

      • parseFromHeader

        public static int parseFromHeader​(String line,
                                          String header)
                                   throws Exception
        Parse a value from one of the headers in the network file
        Parameters:
        line - the current line in the network file
        header - the header to be parsed
        Returns:
        the integer value contained within the specified header section
        Throws:
        Exception - thrown if the contents of the header cannot be parsed into an integer