Uses of Interface
cool.scx.io.data_supplier.DataSupplier
Packages that use DataSupplier
-
Uses of DataSupplier in cool.scx.io.data_reader
Fields in cool.scx.io.data_reader declared as DataSupplierConstructors in cool.scx.io.data_reader with parameters of type DataSupplierModifierConstructorDescriptionLinkedDataReader(DataSupplier dataSupplier) PowerfulLinkedDataReader(DataSupplier dataSupplier) -
Uses of DataSupplier in cool.scx.io.data_supplier
Classes in cool.scx.io.data_supplier that implement DataSupplierModifier and TypeClassDescriptionclassByteChannelDataSupplierclassBufferedInputStreamDataSupplier 和InputStreamDataSupplier性能相反 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会差一点 因为多了一次复制 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会好一点 因为只会创建一个较小的数组并复制数据classclassclassInputStreamDataSupplier 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会高一点 因为只会进行数组创建这一步 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会差一点 因为每次都会创建一个 bufferLength 大小的数组 如果启用压缩则会产生第二次复制 增加时间 如果未启用压缩则会造成内存上的一些浪费 这时建议使用BufferedInputStreamDataSupplierclass可以一次性将多个 DataSupplier 组合成一个Constructors in cool.scx.io.data_supplier with parameters of type DataSupplierConstructor parameters in cool.scx.io.data_supplier with type arguments of type DataSupplier -
Uses of DataSupplier in cool.scx.io.io_stream
Constructors in cool.scx.io.io_stream with parameters of type DataSupplier