类 DiskUtils.LineIterator

  • 所有已实现的接口:
    java.lang.AutoCloseable
    封闭类:
    DiskUtils

    public static class DiskUtils.LineIterator
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private org.apache.commons.io.LineIterator target  
    • 构造器概要

      构造器 
      构造器 说明
      LineIterator​(org.apache.commons.io.LineIterator target)
      Constructs an iterator of the lines for a Reader.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()  
      void forEachRemaining​(java.util.function.Consumer<? super java.lang.String> action)  
      boolean hasNext()  
      java.lang.String next()  
      java.lang.String nextLine()  
      void remove()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • target

        private final org.apache.commons.io.LineIterator target
    • 构造器详细资料

      • LineIterator

        LineIterator​(org.apache.commons.io.LineIterator target)
        Constructs an iterator of the lines for a Reader.
        参数:
        target - LineIterator
    • 方法详细资料

      • hasNext

        public boolean hasNext()
      • next

        public java.lang.String next()
      • nextLine

        public java.lang.String nextLine()
      • close

        public void close()
                   throws java.io.IOException
        指定者:
        close 在接口中 java.lang.AutoCloseable
        抛出:
        java.io.IOException
      • remove

        public void remove()
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super java.lang.String> action)