refactor(stream): 重构流处理相关代码
- 移除 InOutSteam、InputStreanWrapper、OutputStreamWrapper 类 - 删除 Getable、GetIdable、GetKeyable、GetNameable 接口- 更新 ByteUtils 和 Collection.kt 中的流处理逻辑 - 新增 InputStreamUtils.kt 文件,提供输入流相关扩展函数 - 更新项目版本号至 4.0.5
This commit is contained in:
@@ -16,15 +16,13 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile ByteUtils.kt
|
||||
* LastUpdate 2025-09-15 00:07:22
|
||||
* LastUpdate 2025-09-15 17:26:34
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
@file:JvmName("ByteUtils")
|
||||
|
||||
package com.mingliqiye.utils.bytes
|
||||
|
||||
import com.mingliqiye.utils.stream.SuperStream
|
||||
|
||||
const val ESC_ASC: Byte = 0x10
|
||||
const val ESC_DESC: Byte = 0x1B
|
||||
const val ESC_NONE: Byte = 0x00
|
||||
@@ -43,6 +41,6 @@ const val ESC_RESERVED: Byte = 0x06
|
||||
fun ByteArray.getByteArrayString(): MutableList<String> {
|
||||
return this.toList().stream()
|
||||
.map { a -> String.format("0X%02X", a!!.toInt() and 0xFF) }
|
||||
.collect(SuperStream.Collectors.toList())
|
||||
.collect(com.mingliqiye.utils.stream.toList()) as MutableList<String>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user