mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
update copyright
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ import java.util.concurrent.ExecutionException;
|
||||
/**
|
||||
* Channel相关封装
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
* @since 5.8.2
|
||||
*/
|
||||
public class ChannelUtil {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,7 +24,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* Socket通讯配置
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class SocketConfig implements Serializable{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ import java.nio.channels.ClosedChannelException;
|
||||
/**
|
||||
* Socket相关工具类
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
* @since 4.5.0
|
||||
*/
|
||||
public class SocketUtil {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import org.dromara.hutool.log.LogUtil;
|
||||
/**
|
||||
* 接入完成回调,单例使用
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class AcceptHandler implements CompletionHandler<AsynchronousSocketChannel, AioServer> {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ import java.nio.channels.AsynchronousSocketChannel;
|
||||
/**
|
||||
* Aio Socket客户端
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
* @since 4.5.0
|
||||
*/
|
||||
public class AioClient implements Closeable {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,7 @@ import java.nio.channels.AsynchronousServerSocketChannel;
|
||||
/**
|
||||
* 基于AIO的Socket服务端实现
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*/
|
||||
public class AioServer implements Closeable {
|
||||
private static final Log log = Log.get();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* AIO会话<br>
|
||||
* 每个客户端对应一个会话对象
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class AioSession implements Closeable{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,7 +20,7 @@ package org.dromara.hutool.socket.aio;
|
||||
* Socket流处理接口<br>
|
||||
* 实现此接口用于处理接收到的消息,发送指定消息
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
* @param <T> 经过解码器解码后的数据类型
|
||||
*/
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,7 @@ import org.dromara.hutool.socket.SocketRuntimeException;
|
||||
/**
|
||||
* 数据读取完成回调,调用Session中相应方法处理消息,单例使用
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class ReadHandler implements CompletionHandler<Integer, AioSession> {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,7 +24,7 @@ import org.dromara.hutool.log.LogUtil;
|
||||
* 简易IO信息处理类<br>
|
||||
* 简单实现了accept和failed事件
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public abstract class SimpleIoAction implements IoAction<ByteBuffer> {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* AIO相关封装
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
package org.dromara.hutool.socket.aio;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,7 +27,7 @@ import java.nio.channels.SocketChannel;
|
||||
/**
|
||||
* 接入完成回调,单例使用
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*/
|
||||
public class AcceptHandler implements CompletionHandler<ServerSocketChannel, NioServer> {
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,7 @@ import java.util.Iterator;
|
||||
/**
|
||||
* NIO客户端
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
* @since 4.4.5
|
||||
*/
|
||||
public class NioClient implements Closeable {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,7 @@ import java.util.Iterator;
|
||||
/**
|
||||
* 基于NIO的Socket服务端实现
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class NioServer implements Closeable {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,7 @@ import java.nio.channels.SelectionKey;
|
||||
/**
|
||||
* SelectionKey Operation的枚举封装
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*/
|
||||
public enum Operation {
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* NIO相关封装
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
package org.dromara.hutool.socket.nio;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Socket套接字相关工具类封装
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
package org.dromara.hutool.socket;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,7 @@ import org.dromara.hutool.socket.aio.AioSession;
|
||||
/**
|
||||
* 消息解码器
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
* @param <T> 解码后的目标类型
|
||||
*/
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,7 @@ import org.dromara.hutool.socket.aio.AioSession;
|
||||
/**
|
||||
* 消息编码器
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
* @param <T> 编码前后的数据类型
|
||||
*/
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
|
||||
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* 消息协议接口及实现
|
||||
*
|
||||
* @author looly
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
package org.dromara.hutool.socket.protocol;
|
||||
|
Reference in New Issue
Block a user