Uses of Class
cloud.opencode.base.io.file.LineProcessor

Packages that use LineProcessor
Package
Description
 
  • Uses of LineProcessor in cloud.opencode.base.io.file

    Modifier and Type
    Method
    Description
    LineProcessor.filter(Predicate<String> predicate)
    Filters lines matching the predicate 过滤匹配谓词的行
    LineProcessor.grep(String regex)
    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 for filter(s -> !s.isEmpty())) 过滤掉空行(filter(s -> !s.isEmpty())的快捷方式)
    LineProcessor.of(String path)
    Creates a LineProcessor for the given path string with UTF-8 charset 使用UTF-8字符集为给定路径字符串创建LineProcessor
    LineProcessor.of(Path path)
    Creates a LineProcessor for the given path with UTF-8 charset 使用UTF-8字符集为给定路径创建LineProcessor
    LineProcessor.of(Path path, Charset charset)
    Creates a LineProcessor for the given path with specified charset 使用指定字符集为给定路径创建LineProcessor
    LineProcessor.skip(long n)
    Skips the first N lines 跳过前N行
    LineProcessor.trim()
    Trims whitespace from each line (shortcut for map(String::trim)) 去除每行的空白字符(map(String::trim)的快捷方式)