Class TextFileDataContainer

java.lang.Object
com.igormaznitsa.jcp.containers.TextFileDataContainer

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

    • text

      private final String[] text
    • fileEndedByNextLine

      private final boolean fileEndedByNextLine
    • file

      private final File file
    • autoFlush

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

      private int nextStringIndex
  • Constructor Details

    • TextFileDataContainer

      public TextFileDataContainer(TextFileDataContainer item, int stringIndex)
    • TextFileDataContainer

      public TextFileDataContainer(File currentFile, @MustNotContainNull String[] text, boolean fileEndedByNextLine, int stringIndex)
  • Method Details

    • disableAutoFlush

      public void disableAutoFlush()
    • isAutoFlush

      public boolean isAutoFlush()
    • getText

      @MustNotContainNull public String[] getText()
    • getFile

      public File getFile()
    • reset

      public void reset()
    • isPresentedNextLineOnReadString

      public boolean isPresentedNextLineOnReadString()
    • nextLine

      public String nextLine()
    • setNextStringIndex

      public void setNextStringIndex(int index)
    • getLastReadStringIndex

      public int getLastReadStringIndex()
    • getNextStringIndex

      public int getNextStringIndex()
    • hashCode

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

      public boolean equals(Object that)
      Overrides:
      equals in class Object