packetdecoder.java
来自「银行项目为后台socket通信写的程序」· Java 代码 · 共 36 行
JAVA
36 行
/****************************************************************************
* Package : com.ecSolutions.ecAppServer.server
* File : PacketDecoder.java
* Create Date : 2007-7-20
* Author : Steven Chen
*
* Copyright(C) 2006 ecSolutions(shanghai) Co.,Limited.All Rights Reserved.
*
***************************************************************************/
package com.ecSolutions.ecAppServer.server;
/**
* Decode <code>Packet</code> to object.
*
* @author Steven Chen
* @version $Id: PacketDecoder.java,v 1.2 2007/07/26 04:10:42 stevenchen Exp $
*/
public interface PacketDecoder {
/**
* Decode packet to object. The content of the packet is readonly, and it's
* position will not be changed if the method return null.
*
* @param session
* session
* @param packet
* packet
* @return decoded object
* @throws Exception
* any exception
*/
Object decode(Session session, Packet packet) throws Exception;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?