Documentation of 'org.hsqldb.lib.LineGroupReader' Java class
LineGroupReader
org.hsqldb.lib

Class LineGroupReader



  • public class LineGroupReader
    extends java.lang.Object
    Uses a LineNumberReader and returns multiple consecutive lines which conform to the specified group demarcation characteristics. Any IOException thrown while reading from the reader is handled internally.
    Since:
    1.9.0
    • Constructor Detail

      • LineGroupReader

        public LineGroupReader(java.io.LineNumberReader reader)
        Default constructor for TestUtil usage. Sections start at lines beginning with any non-space character. SQL comment lines are ignored.
      • LineGroupReader

        public LineGroupReader(java.io.LineNumberReader reader,
                               java.lang.String[] sectionStarts)
        Constructor for sections starting with specified strings.
    • Method Detail

      • getAsMap

        public HashMappedList getAsMap()
        Returns a map/list which contains the first line of each line group as key and the rest of the lines as a String value.
      • getStartLineNumber

        public int getStartLineNumber()
      • close

        public void close()
      • convertToString

        public static java.lang.String convertToString(HsqlArrayList list,
                                                       int offset)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.