Uses of Class
cloud.opencode.base.io.file.LineProcessor
Packages that use LineProcessor
-
Uses of LineProcessor in cloud.opencode.base.io.file
Methods in cloud.opencode.base.io.file that return LineProcessorModifier and TypeMethodDescriptionFilters lines matching the predicate 过滤匹配谓词的行Filters lines matching the given regex pattern 过滤匹配给定正则表达式模式的行LineProcessor.limit(long maxLines) Limits the number of lines to process 限制要处理的行数LineProcessor.map(UnaryOperator<String> mapper) Maps each line using the mapper function 使用映射函数映射每一行LineProcessor.nonEmpty()Filters out empty lines (shortcut forfilter(s -> !s.isEmpty())) 过滤掉空行(filter(s -> !s.isEmpty())的快捷方式)static LineProcessorCreates a LineProcessor for the given path string with UTF-8 charset 使用UTF-8字符集为给定路径字符串创建LineProcessorstatic LineProcessorCreates a LineProcessor for the given path with UTF-8 charset 使用UTF-8字符集为给定路径创建LineProcessorstatic LineProcessorCreates a LineProcessor for the given path with specified charset 使用指定字符集为给定路径创建LineProcessorLineProcessor.skip(long n) Skips the first N lines 跳过前N行LineProcessor.trim()Trims whitespace from each line (shortcut formap(String::trim)) 去除每行的空白字符(map(String::trim)的快捷方式)