Class MatrixParser

    • Constructor Detail

      • MatrixParser

        public MatrixParser​(java.io.InputStream stream)
        Constructor with InputStream.
      • MatrixParser

        public MatrixParser​(java.io.InputStream stream,
                            java.lang.String encoding)
        Constructor with InputStream and supplied encoding
      • MatrixParser

        public MatrixParser​(java.io.Reader stream)
        Constructor.
    • Method Detail

      • readMatrix

        public java.util.Vector readMatrix()
                                    throws IllegalActionException
        Read a Matrix from File.
        Returns:
        A Vector containing the contents of the file.
        Throws:
        IllegalActionException - If an error occurs during parsing.
      • ReInit

        public void ReInit​(java.io.InputStream stream)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.InputStream stream,
                           java.lang.String encoding)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.Reader stream)
        Reinitialise.
      • getNextToken

        public final Token getNextToken()
        Get the next Token.
      • getToken

        public final Token getToken​(int index)
        Get the specific Token.
      • generateParseException

        public ParseException generateParseException()
        Generate ParseException.
      • enable_tracing

        public final void enable_tracing()
        Enable tracing.
      • disable_tracing

        public final void disable_tracing()
        Disable tracing.