Package net.fabricmc.mappingio.format
Class ColumnFileReader
java.lang.Object
net.fabricmc.mappingio.format.ColumnFileReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intbooleanbooleanisAtEof()voidmark()@Nullable StringnextCol()Read and consume a column without unescaping.@Nullable StringnextCol(boolean unescape) Read and consume a column and unescape it if requested.booleanTry to read the current column with specific expected content.@Nullable StringnextCols(boolean unescape) Read and consume all column until eol and unescape if requested.@Nullable StringRead and consume a column with unescaping.intRead and consume a column and convert it to integer.booleannextLine(int indent) voidreset()
-
Constructor Details
-
ColumnFileReader
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
nextCol
Try to read the current column with specific expected content.The reader will point to the next column or end of line if successful, otherwise remains unchanged.
- Parameters:
expect- content to expect- Returns:
- true if the column was read and had the expected content, false otherwise
- Throws:
IOException
-
nextCol
Read and consume a column without unescaping.- Throws:
IOException
-
nextEscapedCol
Read and consume a column with unescaping.- Throws:
IOException
-
nextCol
Read and consume a column and unescape it if requested.- Throws:
IOException
-
nextCols
Read and consume all column until eol and unescape if requested.- Throws:
IOException
-
nextIntCol
Read and consume a column and convert it to integer.- Throws:
IOException
-
nextLine
- Throws:
IOException
-
hasExtraIndents
- Throws:
IOException
-
getLineNumber
public int getLineNumber() -
isAtEof
public boolean isAtEof() -
mark
public void mark() -
reset
public void reset()
-