Class TextFileDataContainer


  • public final class TextFileDataContainer
    extends java.lang.Object
    The class contains text data of a file and the string position index for the file
    • Field Detail

      • text

        private final java.lang.String[] text
      • fileEndedByNextLine

        private final boolean fileEndedByNextLine
      • file

        private final java.io.File file
      • autoFlush

        private boolean autoFlush
        Flag shows to save automatically buffers after file preprocessing end.
      • nextStringIndex

        private int nextStringIndex
    • Constructor Detail

      • TextFileDataContainer

        public TextFileDataContainer​(java.io.File currentFile,
                                     java.lang.String[] text,
                                     boolean fileEndedByNextLine,
                                     int stringIndex)
    • Method Detail

      • disableAutoFlush

        public void disableAutoFlush()
      • isAutoFlush

        public boolean isAutoFlush()
      • getText

        public java.lang.String[] getText()
      • getFile

        public java.io.File getFile()
      • reset

        public void reset()
      • isPresentedNextLineOnReadString

        public boolean isPresentedNextLineOnReadString()
      • nextLine

        public java.lang.String nextLine()
      • setNextStringIndex

        public void setNextStringIndex​(int index)
      • getLastReadStringIndex

        public int getLastReadStringIndex()
      • getNextStringIndex

        public int getNextStringIndex()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object