Package org.brijframework.util.printer
Class GraphPrinter
- java.lang.Object
-
- org.brijframework.util.printer.GraphPrinter
-
public class GraphPrinter extends Object
-
-
Constructor Summary
Constructors Constructor Description GraphPrinter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatDate(Object date)static GraphPrintergetPrinter(Object object)initialize object and get instance of thisStringprintObject()Prints an Object to a file whose filename is passed to
its containing object while instantiating it.StringprintObject(Object a)Prints an Object to a file whose filename is passed to
its containing object while instantiating it.ObjectprintToFile(File file)Object map write to fileObjectprintToFile(String filePath)Object map write to fileStringprintToScreen()Prints an Object to screenbooleanvalidateString(String aString)Verifies the string to check if it contains only valid chararacters As of now Validate Characters are : Any alphabet, '(', ')', ' '
-
-
-
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
-
-