|  |  |  | 
|---|
|  |  |  | package com.dy.common.mw.channel.tcp; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.apache.mina.core.buffer.IoBuffer; | 
|---|
|  |  |  | import org.apache.mina.core.session.IoSession; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public interface PrefixedDataAvailableHandle { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param in IoBuffer | 
|---|
|  |  |  | * @return 状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PrefixedDataAvailableStatus forOnLine(IoBuffer in) ; | 
|---|
|  |  |  | PrefixedDataAvailableStatus forOnLine(IoSession ioSession,  IoBuffer in) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 预处理上行数据 | 
|---|
|  |  |  | * @param in IoBuffer | 
|---|
|  |  |  | * @return 状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PrefixedDataAvailableStatus forUpData(IoBuffer in) ; | 
|---|
|  |  |  | PrefixedDataAvailableStatus forUpData(IoSession ioSession, IoBuffer in) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|