perfcharts.perftest.parser.JmeterParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of perfcharts-perftest-parser Show documentation
Show all versions of perfcharts-perftest-parser Show documentation
Perfcharts is a free software written in Java, which reads performance testing and system monitoring results from Jmeter, NMON, and/or other applications to produce charts for further analysis.
The newest version!
package perfcharts.perftest.parser;
import java.io.*;
/**
* The parser converts Jmeter test logs to data tables (in CSV format). The raw
* data is can be XML or CSV format.
*
* @author Rayson Zhu
*
*/
public class JmeterParser implements DataParser {
@Override
public void parse(InputStream in, OutputStream out) throws IOException {
final int BUFFER_SIZE = 512;
in.mark(BUFFER_SIZE);
byte[] buffer = new byte[BUFFER_SIZE];
in.read(buffer, 0, BUFFER_SIZE);
String firstLine = new String(buffer, "ascii");
in.reset();
if (firstLine.startsWith("
© 2015 - 2025 Weber Informatics LLC | Privacy Policy