Package com.igormaznitsa.jcp.containers
Class TextFileDataContainer
java.lang.Object
com.igormaznitsa.jcp.containers.TextFileDataContainer
The class contains text data of a file and the string position index for the file
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextFileDataContainer
(TextFileDataContainer item, int stringIndex) TextFileDataContainer
(File currentFile, String[] text, boolean fileEndedByNextLine, int stringIndex) -
Method Summary
-
Field Details
-
text
-
fileEndedByNextLine
private final boolean fileEndedByNextLine -
file
-
autoFlush
private boolean autoFlushFlag shows to save automatically buffers after file preprocessing end. -
nextStringIndex
private int nextStringIndex
-
-
Constructor Details
-
TextFileDataContainer
-
TextFileDataContainer
public TextFileDataContainer(File currentFile, @MustNotContainNull String[] text, boolean fileEndedByNextLine, int stringIndex)
-
-
Method Details
-
disableAutoFlush
public void disableAutoFlush() -
isAutoFlush
public boolean isAutoFlush() -
getText
-
getFile
-
reset
public void reset() -
isPresentedNextLineOnReadString
public boolean isPresentedNextLineOnReadString() -
nextLine
-
setNextStringIndex
public void setNextStringIndex(int index) -
getLastReadStringIndex
public int getLastReadStringIndex() -
getNextStringIndex
public int getNextStringIndex() -
hashCode
public int hashCode() -
equals
-