java.lang.Object
dev.argon.esexpr.ESExprBinaryReader
-
Constructor Summary
ConstructorsConstructorDescriptionESExprBinaryReader(@NotNull List<String> symbolTable, @NotNull InputStream is) Create a reader for the ESExpr binary format. -
Method Summary
-
Constructor Details
-
ESExprBinaryReader
public ESExprBinaryReader(@NotNull @NotNull List<String> symbolTable, @NotNull @NotNull InputStream is) Create a reader for the ESExpr binary format.- Parameters:
symbolTable- The symbol table used when parsing.is- The stream.
-
-
Method Details
-
read
Attempts to read an ESExpr from the stream.- Returns:
- The ESExpr, or null if at the end of the stream.
- Throws:
IOException- when an error occurs in the underlying stream.SyntaxException- when an expression cannot be read.
-
readAll
-
readEmbeddedStringTable
@NotNull public static @NotNull Stream<@NotNull ESExpr> readEmbeddedStringTable(InputStream is) throws IOException, SyntaxException Reads all ESExpr values, using the first as the string table.- Parameters:
is- The input stream.- Returns:
- A stream of ESExpr values.
- Throws:
IOException- when an error occurs in the underlying stream.SyntaxException- when an expression cannot be read.
-