package org.craft.atom.protocol.textline.api;

import java.nio.charset.Charset;

import org.craft.atom.protocol.ProtocolDecoder;
import org.craft.atom.protocol.ProtocolEncoder;
import org.craft.atom.protocol.textline.TextLineDecoder;
import org.craft.atom.protocol.textline.TextLineEncoder;

/**
 * TextLine codec factory
 * 
 * @author mindwind
 * @version 1.0, Aug 4, 2014
 */
public class TextLineCodecFactory {

	
	public static ProtocolEncoder<String> newTextLineEncoder(Charset charset, String delimiter) {
		return new TextLineEncoder(charset, delimiter);
	}
	
	public static ProtocolDecoder<String> newTextLineDecoder(Charset charset, String delimiter) {
		return new TextLineDecoder(charset, delimiter);
	}
	
	public static TextLineDecoderBuilder newTextLineDecoderBuilder(Charset charset, String delimiter) {
		return new TextLineDecoderBuilder(charset, delimiter);
	}
	
}

@@ -314,16 +314,133 @@
  factory
+, which provides static factory method to create %7B@link ProtocolEncoder%3CString%3E%7D and %7B@link ProtocolDecoder%3CString%3E%7D.
 %0A * %0A * 

improve - textline protocol javadoc