Class PrintoutsToolkit
java.lang.Object
org.openjdk.jmc.flightrecorder.test.util.PrintoutsToolkit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEventsFromPrintout(IOResourceSet resourceSet) static FileReturn the directory where the printout files reside.static IOResourceSet[]Return the files that can be used for comparing old printouts.static voidstatic voidprintRecording(File sourceFile, File destinationFile) Prints the contents of a recording to another file in text format.
-
Constructor Details
-
PrintoutsToolkit
public PrintoutsToolkit()
-
-
Method Details
-
getTestResources
Return the files that can be used for comparing old printouts.- Returns:
- the test file need for comparing files.
- Throws:
IOException- if the files could not be located.
-
getPrintoutDirectory
Return the directory where the printout files reside.- Returns:
- the printout file directory
- Throws:
IOException- if the directory could not be found
-
printRecording
public static void printRecording(File sourceFile, File destinationFile) throws IOException, CouldNotLoadRecordingException Prints the contents of a recording to another file in text format.- Parameters:
sourceFile- the source recording filedestinationFile- the destination file for the printing.- Throws:
IOExceptionCouldNotLoadRecordingException
-
getEventsAsStrings
- Throws:
IOException
-
getEventsFromPrintout
public static List<String> getEventsFromPrintout(IOResourceSet resourceSet) throws IOException, Exception - Throws:
IOExceptionException
-
main
-