Class use for compatibility with existing blocking java serialization frameworks e.
Contrarily to the regular ByteArrayOutputStream this class accumulate byte arrays into a list buffer and assumes a thread-safe environment and immutability which permit to optimize the code by removing synchronization and defense copying.
Contrarily to the regular ByteArrayOutputStream this class accumulate byte buffers into a list segment and assumes a thread-safe environment and immutability which permit to optimize the code by removing synchronization and defense copying.
Contrarily to the regular CharArrayOutputStream this class accumulate byte buffers into a list segment and assumes a thread-safe environment and immutability which permit to optimize the code by removing synchronization and defense copying.
Suggested by John Sullivan on scala-user mailing list (4 mai 2011)
A simple non-reentrant lock used for exclusion when managing queues and workers.
Platform specific line separator
Platform specific line separator
Misc utilities