org.gridkit.jvmtool.event.EventDumpParser Maven / Gradle / Ivy
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;
}
}