Uses of Interface
cool.scx.io.supplier.ByteSupplier
Packages that use ByteSupplier
-
Uses of ByteSupplier in cool.scx.io
Constructors in cool.scx.io with parameters of type ByteSupplier -
Uses of ByteSupplier in cool.scx.io.supplier
Classes in cool.scx.io.supplier that implement ByteSupplierModifier and TypeClassDescriptionfinal classBoundaryByteSupplierfinal classBufferedInputStreamByteSupplier 和InputStreamByteSupplier性能表现相反 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会差一点 因为多了一次复制 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会好一点 因为只会创建一个较小的数组并复制数据final classByteArrayByteSupplierclassFixedLengthByteSupplierfinal classInputStreamByteSupplier 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会高一点 因为只会进行数组创建这一步 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会差一点 因为每次都会创建一个 bufferLength 大小的数组 如果启用压缩则会产生第二次复制 增加时间 如果未启用压缩则会造成内存上的一些浪费 这时建议使用BufferedInputStreamByteSupplierfinal classSequenceByteSupplierConstructors in cool.scx.io.supplier with parameters of type ByteSupplierConstructor parameters in cool.scx.io.supplier with type arguments of type ByteSupplierModifierConstructorDescriptionSequenceByteSupplier(Collection<ByteSupplier> dataSupplierList, boolean closeOnSwitch)