Class LineReader

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class LineReader
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.io.BufferedReader lineReader  
      (package private) java.io.InputStreamReader lineStream  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String[] readAndSplitLine​(boolean ignoreEmptyLines)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lineStream

        java.io.InputStreamReader lineStream
      • lineReader

        java.io.BufferedReader lineReader
    • Constructor Detail

      • LineReader

        public LineReader​(IResource resource)
    • Method Detail

      • readAndSplitLine

        @Nullable
        public java.lang.String[] readAndSplitLine​(boolean ignoreEmptyLines)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception