Class FileService
java.lang.Object
gov.nasa.pds.tools.util.FileService
A class to allow reading and writing text file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendTextToOneLine(String filename, String textStr) Open the file for writing and write a text string.static voidappendTextToOneLine(String filename, String[] textArray) Open the file for writing and write textArray separated by a space to file all in one line.static voidstatic voidprintDocumentToFile(String filename, DOMSource domSource) Print a document (DOMSource) to a text file.static voidprintDocumentToFile(String filename, Document docSource) Print a document to a text file.static voidprintStackTraceToFile(String filename, Exception exception) Print a stack trace to a text file.
-
Constructor Details
-
FileService
public FileService()
-
-
Method Details
-
main
-
appendTextToOneLine
-
appendTextToOneLine
-
printStackTraceToFile
-
printDocumentToFile
-
printDocumentToFile
-