diff --git a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_001_Write.java b/src/main/java/com/kwan/shuyu/heima/ByteBuffer_01_Write.java similarity index 96% rename from src/main/java/com/kwan/shuyu/heima/ByteBuffer_001_Write.java rename to src/main/java/com/kwan/shuyu/heima/ByteBuffer_01_Write.java index 5226444adb3410e91161751732800f7b1c097c5f..99233b17c1f1c1bc294b194ef12e596ee4034a34 100644 --- a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_001_Write.java +++ b/src/main/java/com/kwan/shuyu/heima/ByteBuffer_01_Write.java @@ -12,7 +12,7 @@ import java.nio.charset.StandardCharsets; * @version : 2.2.0 * @date : 2023/4/18 17:15 */ -public class ByteBuffer_001_Write { +public class ByteBuffer_01_Write { public static void main(String[] args) { final ByteBuffer b1 = StandardCharsets.UTF_8.encode("hello"); final ByteBuffer b2 = StandardCharsets.UTF_8.encode("world"); diff --git a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_003_split.java b/src/main/java/com/kwan/shuyu/heima/ByteBuffer_03_split.java similarity index 81% rename from src/main/java/com/kwan/shuyu/heima/ByteBuffer_003_split.java rename to src/main/java/com/kwan/shuyu/heima/ByteBuffer_03_split.java index 8e33fd1196e7b888611761eefca23741fa1829cf..5e0ab3443cf8818f56cb762a260506cfb3cec4f8 100644 --- a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_003_split.java +++ b/src/main/java/com/kwan/shuyu/heima/ByteBuffer_03_split.java @@ -7,11 +7,7 @@ package com.kwan.shuyu.heima; * @version : 2.2.0 * @date : 2023/4/18 17:15 */ -public class ByteBuffer_003_split { +public class ByteBuffer_03_split { public static void main(String[] args) { - - - - } } diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_001_Test.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_01_Test_FileChannel.java similarity index 87% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_001_Test.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_01_Test_FileChannel.java index fa3b2b27b3319c8e65f717710593538dc0190abd..8e29d98660a32435bc9007a7ae728c7c07e7bacf 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_001_Test.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_01_Test_FileChannel.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import java.io.FileInputStream; import java.nio.ByteBuffer; @@ -11,7 +11,7 @@ import java.nio.channels.FileChannel; * @version : 2.2.0 * @date : 2023/4/18 17:15 */ -public class ByteBuffer_001_Test { +public class ByteBuffer_01_Test_FileChannel { public static void main(String[] args) { try (FileChannel channel = new FileInputStream("data.txt").getChannel()) { ByteBuffer buffer = ByteBuffer.allocate(10); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_002_Test.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_02_Test_hasRemaining.java similarity index 91% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_002_Test.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_02_Test_hasRemaining.java index 04943f8a71af498a24dae7a3879ea4d723dc8e64..4adfe0d5350333a3766eb94e2aa93e9a82152510 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_002_Test.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_02_Test_hasRemaining.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -14,7 +14,7 @@ import java.nio.channels.FileChannel; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_002_Test { +public class ByteBuffer_02_Test_hasRemaining { public static void main(String[] args) { try (FileChannel channel = new FileInputStream("data.txt").getChannel()) { ByteBuffer buffer = ByteBuffer.allocate(10); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_003_Test_put.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_03_Test_put.java similarity index 86% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_003_Test_put.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_03_Test_put.java index 9a7bf61a63950446be152deb400f63e2e9be93ff..80a2c575259ed6ff813b2de84c3bcb8cf2b0d983 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_003_Test_put.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_03_Test_put.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -14,7 +14,7 @@ import static com.kwan.shuyu.until.ByteBufferUtil.debugAll; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_003_Test_put { +public class ByteBuffer_03_Test_put { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put((byte) 0x61); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_004_Test_flip.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_04_Test_flip.java similarity index 88% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_004_Test_flip.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_04_Test_flip.java index 75b7fa20984943ecf073d9738dfd0a1813ad928c..7f46c06727f5208d56c217af95c9aaf3d5b16575 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_004_Test_flip.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_04_Test_flip.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -14,7 +14,7 @@ import static com.kwan.shuyu.until.ByteBufferUtil.debugAll; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_004_Test_flip { +public class ByteBuffer_04_Test_flip { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put((byte) 0x61); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_005_Test_compact.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_05_Test_compact.java similarity index 88% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_005_Test_compact.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_05_Test_compact.java index cfa9716b429ccee97b1ae8d464df37ad1bce325a..51cd661a6a974c17ee30620da87fb88b56101738 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_005_Test_compact.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_05_Test_compact.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -14,7 +14,7 @@ import static com.kwan.shuyu.until.ByteBufferUtil.debugAll; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_005_Test_compact { +public class ByteBuffer_05_Test_compact { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put((byte) 0x61); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_006_Test_allocate.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_06_Test_allocate.java similarity index 81% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_006_Test_allocate.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_06_Test_allocate.java index 1a5cfe8d65c2e026796326a8d2eea3faa9c20cbc..c413622c359fe4d4b185a9720b7b02b91f2131ec 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_006_Test_allocate.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_06_Test_allocate.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -12,7 +12,7 @@ import java.nio.ByteBuffer; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_006_Test_allocate { +public class ByteBuffer_06_Test_allocate { public static void main(String[] args) { System.out.println(ByteBuffer.allocate(16).getClass().getSimpleName()); System.out.println(ByteBuffer.allocateDirect(16).getClass().getSimpleName()); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_007_Test_read.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_07_Test_read.java similarity index 86% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_007_Test_read.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_07_Test_read.java index 3e6c5e192b5ca5454de0a8b67a223fa83707f196..e7f37393c3bb4cd0b25a529c7fbe4f41fd0a4d40 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_007_Test_read.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_07_Test_read.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import com.kwan.shuyu.until.ByteBufferUtil; import lombok.extern.slf4j.Slf4j; @@ -13,7 +13,7 @@ import java.nio.ByteBuffer; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_007_Test_read { +public class ByteBuffer_07_Test_read { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put(new byte[]{'a', 'b', 'c', 'd'}); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_008_Test_mark.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_08_Test_mark.java similarity index 89% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_008_Test_mark.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_08_Test_mark.java index b696039d1c9f7a5bd6f641e264acaa47c483da64..e06b2c6b007df8a2167731828f6371c6f7a6a3d3 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_008_Test_mark.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_08_Test_mark.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -12,7 +12,7 @@ import java.nio.ByteBuffer; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_008_Test_mark { +public class ByteBuffer_08_Test_mark { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put(new byte[]{'a', 'b', 'c', 'd'}); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_009_Test_get.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_09_Test_get.java similarity index 91% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_009_Test_get.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_09_Test_get.java index e7e5bece3ccba3507744cc8fd44b5e65b4eb17bb..c08f475d931fb814477bf6fbd720eccd9e13f37a 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_009_Test_get.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_09_Test_get.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -12,7 +12,7 @@ import java.nio.ByteBuffer; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_009_Test_get { +public class ByteBuffer_09_Test_get { public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put(new byte[]{'a', 'b', 'c', 'd'}); diff --git a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_010_Test_String.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_10_Test_String.java similarity index 92% rename from src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_010_Test_String.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_10_Test_String.java index fe698ec7ce75c1eac535e755efc7ecc814b8d802..49b0e0b53e37af98020e94853b97302b0d0e196f 100644 --- a/src/main/java/com/kwan/shuyu/heima/bytebuffer/ByteBuffer_010_Test_String.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_10_Test_String.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.bytebuffer; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import lombok.extern.slf4j.Slf4j; @@ -15,7 +15,7 @@ import static com.kwan.shuyu.until.ByteBufferUtil.debugAll; * @date : 2023/4/18 17:15 */ @Slf4j -public class ByteBuffer_010_Test_String { +public class ByteBuffer_10_Test_String { public static void main(String[] args) { //方式一,不会自动切换到读模式 ByteBuffer buffer1 = ByteBuffer.allocate(16); diff --git a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_002_Read.java b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_11_Test_Read.java similarity index 74% rename from src/main/java/com/kwan/shuyu/heima/ByteBuffer_002_Read.java rename to src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_11_Test_Read.java index 6c5aaeb55f10bfc6d3c2fd4ba9f88561b5beb4f7..72d8bb113a8dc07b6984e6731b3cbe921b7d945c 100644 --- a/src/main/java/com/kwan/shuyu/heima/ByteBuffer_002_Read.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_01_bytebuffer/ByteBuffer_11_Test_Read.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima; +package com.kwan.shuyu.heima.netty_01_bytebuffer; import com.kwan.shuyu.until.ByteBufferUtil; @@ -8,15 +8,15 @@ import java.nio.ByteBuffer; import java.nio.channels.FileChannel; /** - * 读取文件内容并打印ByteBuffer + * 分散读取 * * @author : qinyingjie * @version : 2.2.0 * @date : 2023/4/18 18:01 */ -public class ByteBuffer_002_Read { +public class ByteBuffer_11_Test_Read { public static void main(String[] args) { - try (RandomAccessFile file = new RandomAccessFile("/Users/qinyingjie/Documents/idea-workspace/ant/ant-netty/src/main/java/com/xiaofei/antnetty/3parts.txt", "rw")) { + try (RandomAccessFile file = new RandomAccessFile("3parts.txt", "rw")) { FileChannel channel = file.getChannel(); ByteBuffer a = ByteBuffer.allocate(3); ByteBuffer b = ByteBuffer.allocate(3); diff --git a/src/main/java/com/kwan/shuyu/heima/netty_02_file/File_01_Test_exists.java b/src/main/java/com/kwan/shuyu/heima/netty_02_file/File_01_Test_exists.java new file mode 100644 index 0000000000000000000000000000000000000000..aceb469cc816fbdc56bf89469d2371666c859e59 --- /dev/null +++ b/src/main/java/com/kwan/shuyu/heima/netty_02_file/File_01_Test_exists.java @@ -0,0 +1,19 @@ +package com.kwan.shuyu.heima.netty_02_file; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; + +/** + * 检查文件是否存在 + * + * @author : qinyingjie + * @version : 2.2.0 + * @date : 2023/4/18 17:15 + */ +public class File_01_Test_exists { + public static void main(String[] args) { + Path path = Paths.get(".gitignore"); + System.out.println(Files.exists(path)); + } +} diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioClient.java similarity index 91% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioClient.java index 469248a5ef7465239f02c58f07a6d290b2c886f0..02f2ff777d39865db4d56dce7ecd38c2123fa06f 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioClient.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_001_block; +package com.kwan.shuyu.heima.netty_03_nio.nio_01_block; import java.io.IOException; import java.net.InetSocketAddress; diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioServer.java similarity index 96% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioServer.java index 19c89c23e35065f2541e1a23e3eefb4becb5d295..69c3c770a88e57644956d0f0e1a769b37cd6bf21 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_01_block/NioServer.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_001_block; +package com.kwan.shuyu.heima.netty_03_nio.nio_01_block; import com.kwan.shuyu.until.ByteBufferUtil; import lombok.extern.slf4j.Slf4j; diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioClient.java similarity index 91% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioClient.java index f8e5d867752d8f9f94df2398a4f42c952f7124a3..fe09838d66ffb49adfe86cf6fc1c345448923e4a 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioClient.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_002_no_block; +package com.kwan.shuyu.heima.netty_03_nio.nio_02_no_block; import java.io.IOException; import java.net.InetSocketAddress; diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioServer.java similarity index 97% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioServer.java index 837902c8f24c4afa95fe2ca6c2d4f2d766568148..a2dc6620d00b88b51b219e84648bb194389ee1be 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_02_no_block/NioServer.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_002_no_block; +package com.kwan.shuyu.heima.netty_03_nio.nio_02_no_block; import com.kwan.shuyu.until.ByteBufferUtil; import lombok.extern.slf4j.Slf4j; diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioClient.java similarity index 91% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioClient.java index 7dcb0f4a89377c26cdd5570f9e157b93f5687b57..bb90316d69f489b026a12d585c5ea18a89e46bb2 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioClient.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_003_selector; +package com.kwan.shuyu.heima.netty_03_nio.nio_03_selector; import java.io.IOException; import java.net.InetSocketAddress; diff --git a/src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.java b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioServer.java similarity index 97% rename from src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.java rename to src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioServer.java index ae02c38d43041858960a872aa893bd6c115bd645..514ad7fdaeabbf036d2a454e9586851156d0be35 100644 --- a/src/main/java/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.java +++ b/src/main/java/com/kwan/shuyu/heima/netty_03_nio/nio_03_selector/NioServer.java @@ -1,4 +1,4 @@ -package com.kwan.shuyu.heima.nio.nio_003_selector; +package com.kwan.shuyu.heima.netty_03_nio.nio_03_selector; import com.kwan.shuyu.until.ByteBufferUtil; import lombok.extern.slf4j.Slf4j; diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.class b/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.class deleted file mode 100644 index bdcf27f2a9ca15de4aa57a1834a10743e5d1db54..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioClient.class and /dev/null differ diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.class b/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.class deleted file mode 100644 index 996b3156a1feea490ada6461a6212e4f55681e7a..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_001_block/NioServer.class and /dev/null differ diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.class b/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.class deleted file mode 100644 index 8b345e455d2d3a9c01441154e8744c1670be7d25..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioClient.class and /dev/null differ diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.class b/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.class deleted file mode 100644 index d3f68fcf5d99c1fa6bdeecbddb8e389ddfed3cf4..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_002_no_block/NioServer.class and /dev/null differ diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.class b/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.class deleted file mode 100644 index 574a23ca3067f6200bf77626b045ec3acddc2829..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioClient.class and /dev/null differ diff --git a/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.class b/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.class deleted file mode 100644 index 90fe6a826d811b20fab3ac53e74964956f317fa8..0000000000000000000000000000000000000000 Binary files a/target/classes/com/kwan/shuyu/heima/nio/nio_003_selector/NioServer.class and /dev/null differ