Class GraphPrinter


  • public class GraphPrinter
    extends Object
    • Constructor Detail

      • GraphPrinter

        public GraphPrinter()
    • Method Detail

      • getPrinter

        public static GraphPrinter getPrinter​(Object object)
        initialize object and get instance of this
        Parameters:
        object -
      • printToScreen

        public String printToScreen()
        Prints an Object to screen
        Parameters:
        a -
        Returns:
      • printObject

        public String printObject()
        Prints an Object to a file whose filename is passed to
        its containing object while instantiating it.
        Returns:
      • printObject

        public String printObject​(Object a)
        Prints an Object to a file whose filename is passed to
        its containing object while instantiating it.
        Parameters:
        a -
        Returns:
      • validateString

        public boolean validateString​(String aString)
        Verifies the string to check if it contains only valid chararacters As of now Validate Characters are : Any alphabet, '(', ')', ' '
        Parameters:
        aString -
        Returns:
        true | false
      • printToFile

        public Object printToFile​(File file)
        Object map write to file
        Parameters:
        file -
        Returns:
        text
        Throws:
        Exception
      • printToFile

        public Object printToFile​(String filePath)
        Object map write to file
        Parameters:
        file -
        Returns:
        text
        Throws:
        Exception