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

com.vmlens.trace.agent.bootstrap.event.ClassNameEvent Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.vmlens.trace.agent.bootstrap.event;

import java.io.DataOutputStream;

public class ClassNameEvent implements StaticEvent  {
	
	
	private final String name;
	private final int id;

	
	
	
	

	public ClassNameEvent(String name, int id) {
		super();
		this.name = name;
		this.id = id;
	}






	@Override
	public void serialize(StreamRepository streamRepository) throws Exception {
	
		DataOutputStream stream = streamRepository.className.getStream();
		
		stream.writeInt(id);
		stream.writeUTF(name);
	
		
		stream.flush();
		
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy