org.gridkit.jvmtool.event.EventDumpParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjk-stacktrace Show documentation
Show all versions of sjk-stacktrace Show documentation
Thread dumps: capture and encoding
package org.gridkit.jvmtool.event;
import java.io.IOException;
import java.io.InputStream;
import java.util.ServiceLoader;
/**
* This is SPI interface for dump parsers discovered via {@link ServiceLoader}.
*
* @author Alexey Ragozin ([email protected])
*/
public interface EventDumpParser {
/**
* @return null
if cannot open dump or {@link EventReader}
* @throws IOException
*/
EventReader open(InputStreamSource source) throws IOException;
interface InputStreamSource {
public InputStream open() throws IOException;
}
}