Class LineWriter
java.lang.Object
dev.toonformat.jtoon.encoder.LineWriter
Line writer that accumulates indented lines for building the final output.
-
Constructor Summary
ConstructorsConstructorDescriptionLineWriter(int indentSize) Creates a LineWriter with the specified indentation size. -
Method Summary
-
Constructor Details
-
LineWriter
public LineWriter(int indentSize) Creates a LineWriter with the specified indentation size.- Parameters:
indentSize- Number of spaces per indentation level
-
-
Method Details
-
push
Adds a line with the specified depth and content.- Parameters:
depth- Indentation depth (0 = no indentation)content- Line content to add
-
toString
-