All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;		
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy