类 LengthFinder

  • 所有已实现的接口:
    Finder, Serializable

    public class LengthFinder
    extends TextFinder
    固定长度查找器
    给定一个长度,查找的位置为from + length,一般用于分段截取
    另请参阅:
    序列化表格
    • 构造器详细资料

      • LengthFinder

        public LengthFinder​(int length)
        构造
        参数:
        length - 长度
    • 方法详细资料

      • start

        public int start​(int from)
        从接口复制的说明: Finder
        返回开始位置,即起始字符位置(包含),未找到返回-1
        参数:
        from - 查找的开始位置(包含)
        返回:
        起始字符位置,未找到返回-1
      • end

        public int end​(int start)
        从接口复制的说明: Finder
        返回结束位置,即最后一个字符后的位置(不包含)
        参数:
        start - 找到的起始位置
        返回:
        结束位置,未找到返回-1