com.phasmidsoftware.visitor.misc.AppendableWriter
See theAppendableWriter companion object
case class AppendableWriter(writer: Writer)(closeable: Option[AutoCloseable]) extends Appendable[String]
AppendableWriter is a case class that wraps a Writer instance, enabling string appending functionality along with proper resource management.
This class implements the Appendable trait specialized for String, providing an efficient way to append strings to an underlying writer.
The closeable parameter is an optional resource that will be closed when the close method is invoked, ensuring that any additional resources associated with the writer are properly released.
Value parameters
- closeable
-
an optional
AutoCloseableresource that will be closed along with the writer - writer
-
the underlying
Writerinstance to which strings are appended
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Appendable[String]trait AutoCloseableclass Objecttrait Matchableclass Any
Members list
In this article