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

com.yy.httpproxy.emitter.protocol.PacketText Maven / Gradle / Ivy

The newest version!
package com.yy.httpproxy.emitter.protocol;

import java.io.IOException;
import java.util.ArrayList;

import org.msgpack.packer.Packer;


public class PacketText extends Packet {
	protected ArrayList data = new ArrayList();	

	public PacketText() {}
	
	protected void packData(Packer packer) throws IOException {
		packer.writeArrayBegin(data.size());
		for(String dataRecord : data) {
			packer.write(dataRecord);
		}
		packer.writeArrayEnd(true);
	}
	
	/**
	 * @return the data
	 */
	public ArrayList getData() {
		return data;
	}

	/**
	 * @param data the data to set
	 */
	public void setData(ArrayList data) {
		this.data = data;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy