Package com.io7m.smfj.format.text
Interface SMFTLineReaderType
-
- All Known Implementing Classes:
SMFTLineReaderList
,SMFTLineReaderStreamIO
public interface SMFTLineReaderType
The type of line readers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.util.List<java.lang.String>>
line()
Get the next line.com.io7m.jlexing.core.LexicalPosition<java.net.URI>
position()
-
-
-
Method Detail
-
position
com.io7m.jlexing.core.LexicalPosition<java.net.URI> position()
- Returns:
- The current position
-
line
java.util.Optional<java.util.List<java.lang.String>> line() throws java.io.IOException
Get the next line.- Returns:
- A lexed line, or nothing on EOF
- Throws:
java.io.IOException
- On I/O errors
-
-