类 MsgTransfer
java.lang.Object
top.yqingyu.common.qymsg.MsgTransfer
- 版本:
- 1.0.0
- 作者:
- YYJ
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ArrayList<byte[]>static QyMsgdisassembly(Socket socket, Queue<QyMsg> segmentation$queue, long sleep) static QyMsgdisassembly(SocketChannel socketChannel, Queue<QyMsg> segmentation$queue) static voidinit(int radix, int body_length_max, ExecutorService pool) static StringreadMessage(Socket socket) description: 读取 Socket 中的杨氏消息体static StringreadMessage(Socket socket, int timeout) description: 读取 Socket 中的杨氏消息体static StringreadMessage(SocketChannel socketChannel) description: 读取 SocketChannel 中的杨氏消息体static QyMsgreadMessage2(SocketChannel socketChannel) static QyMsgstatic QyMsgstatic byte[]readQyBytes(Socket socket) static byte[]readQyBytes(Socket socket, int timeout) static byte[]readQyBytes(SocketChannel socketChannel) static QyMsgreadSerializable(Socket socket) 序列化读取static QyMsgreadSerializable(SocketChannel socketChannel) 序列化读取static voidwriteBytes(Socket socket, byte[] bytes) static voidwriteBytes(SocketChannel socketChannel, byte[] bytes) static voidwriteMessage(Socket socket, String msg) description: 通过 Socket 写出杨氏消息体static voidwriteMessage(Socket socket, QyMsg msg) 写出带有用户名的信息 date 2022/5/7 1:12 return voidstatic voidwriteMessage(SocketChannel socketChannel, String msg) description: 通过 SocketChannel 写出杨氏消息体static voidwriteMessage(SocketChannel socketChannel, String userId, String msg) static voidwriteQyBytes(Socket socket, byte[] bytes) static voidwriteQyBytes(SocketChannel socketChannel, byte[] bytes) static voidwriteQyMsg(Socket socket, QyMsg qyMsg) static voidwriteQyMsg(SocketChannel socketChannel, QyMsg qyMsg) static voidwriteSerializable(SocketChannel socketChannel, QyMsg qyQyMsg) 序列化写出static voidwriteSerializable$(Socket socket, QyMsg qyQyMsg) 序列化写出
-
构造器详细资料
-
MsgTransfer
public MsgTransfer()
-
-
方法详细资料
-
init
-
writeQyMsg
- 抛出:
Exception
-
writeQyMsg
- 抛出:
Exception
-
assembly
- 参数:
qyMsg- 消息- 抛出:
IOException
-
disassembly
public static QyMsg disassembly(Socket socket, Queue<QyMsg> segmentation$queue, long sleep) throws IOException, ClassNotFoundException, InterruptedException -
disassembly
public static QyMsg disassembly(SocketChannel socketChannel, Queue<QyMsg> segmentation$queue) throws IOException, ClassNotFoundException -
writeMessage
public static void writeMessage(SocketChannel socketChannel, String userId, String msg) throws Exception - 抛出:
Exception
-
writeMessage
description: 通过 SocketChannel 写出杨氏消息体- 抛出:
Exception
-
writeQyBytes
- 抛出:
Exception
-
writeBytes
- 抛出:
Exception
-
writeBytes
- 抛出:
Exception
-
writeMessage
写出带有用户名的信息 date 2022/5/7 1:12 return void- 抛出:
Exception
-
readMsg
- 抛出:
Exception
-
readMsg
- 抛出:
Exception
-
writeMessage
description: 通过 Socket 写出杨氏消息体- 抛出:
Exception
-
writeQyBytes
- 抛出:
Exception
-
readMessage2
- 抛出:
IOException
-
readMessage
description: 读取 SocketChannel 中的杨氏消息体- 抛出:
IOException
-
readQyBytes
- 抛出:
IOException
-
readMessage
description: 读取 Socket 中的杨氏消息体- 抛出:
IOException
-
readQyBytes
- 抛出:
IOException
-
readMessage
description: 读取 Socket 中的杨氏消息体- 抛出:
Exception
-
readQyBytes
- 抛出:
Exception
-
writeSerializable
序列化写出- 抛出:
Exception
-
writeSerializable$
序列化写出- 抛出:
Exception
-
readSerializable
序列化读取- 抛出:
Exception
-
readSerializable
序列化读取- 抛出:
Exception
-