FileBuilder
A trait to build a string up for writing to a file. This provides the platform specific definition of newline, an nl function to insert a newline, and other functions for putting changes into the file content. The file is assumed to have a UTF-8 content type.
Attributes
- Source
- FileBuilder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DataFlowDiagramtrait MermaidDiagramGeneratorclass ContextMapDiagramclass DomainMapDiagramclass RootOverviewDiagramtrait SequenceDiagramGeneratorclass UseCaseDiagramclass RiddlFileEmittertrait OutputFileclass TextFileWritertrait MarkdownBasicstrait MarkdownWriterclass DotdockWriterclass GeekDocWriterShow all
Members list
Value members
Concrete methods
Append a string without indent or suffix
Append a string without indent or suffix
Value parameters
- str
-
The string to append
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
Add just the indent spaces
Add just the indent spaces
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
Append an indented line with newline at the end and a level
width indent prefix.
Append an indented line with newline at the end and a level
width indent prefix. The indent will be done with level
* spaces-per-level
space characters.
Value parameters
- line
-
The text of the line to be indented
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
Append a line to the buffer with a terminating newline.
Append a line to the buffer with a terminating newline. No prefix is inserted
Value parameters
- line
-
The line to be appended
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
Append a line to the buffer without newlines or indentation
Append a line to the buffer without newlines or indentation
Value parameters
- text
-
The text to be appended
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
Completely erase the internal buffer
Decrement the indent by one level
Increment the indent by one level
Append a newline character
Append a newline character
Attributes
- Returns
-
This object for call chaining
- Source
- FileBuilder.scala
The number of spaces at the current indent level
Convert the buffer to a sequence of strings, one line per string
Convert the buffer to a sequence of strings, one line per string
Attributes
- Returns
- Source
- FileBuilder.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- FileBuilder.scala