⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 protocolwrapfactory.java

📁 短信发送
💻 JAVA
字号:
/**
 * Created at Nov 20, 2008
 */
package com.jdev.net.protocol;

/**
 * <p>Title: ProtocolWrapFactory</p>
 * <p>Description: 数据包装工厂</p>
 * @author Lawrence
 * @version 1.0
 */
public abstract class ProtocolWrapFactory {

	private static ProtocolWrapFactory instance = null;

	public static ProtocolWrapFactory getInstance() {
		if (instance == null) {
			instance = new SocketWrapFactory();
			return instance;
		} else
			return instance;

	}

	public abstract byte[] getRequest(byte[] bytes);

	public abstract byte[] getResponse(byte[] bytes);

	public abstract byte[] getContentFromRequest(byte[] bytes) throws Exception;

	public abstract byte[] getContentFromResponse(byte[] bytes)
			throws Exception;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -