molecule.utils

CharBufferSegOutputStream

class CharBufferSegOutputStream extends AnyRef

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.

Source
CharBufferSegOutputStream.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CharBufferSegOutputStream
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharBufferSegOutputStream()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. var buffer: Seg[CharBuffer]

    The buffer where data is stored.

    The buffer where data is stored.

    Attributes
    protected
  8. var ccount: Int

    The number of valid bytes in the buffer.

    The number of valid bytes in the buffer.

    Attributes
    protected
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def reset(): Unit

    Resets the count field of this byte array output stream to zero, so that all currently accumulated output in the output stream is discarded.

    Resets the count field of this byte array output stream to zero, so that all currently accumulated output in the output stream is discarded. The output stream can be used again, reusing the already allocated buffer space.

    See also

    java.io.CharArrayInputStream#count

  20. def result(): Seg[CharBuffer]

    Returns the number of byt with the list of byte arrays that have been written to this output stream.

  21. def size(): Int

    Returns the current size of the buffer.

    Returns the current size of the buffer.

    returns

    the value of the count field, which is the number of valid bytes in this output stream.

    See also

    java.io.CharArrayOutputStream#count

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toCharArray(): Array[Char]

    Creates a newly allocated byte array.

    Creates a newly allocated byte array. Its size is the current size of this output stream and the valid contents of the buffer have been copied into it.

    returns

    the current contents of this output stream, as a byte array.

    See also

    java.io.CharArrayOutputStream#size()

  24. def toString(): String

    Converts the buffer's contents into a string decoding bytes using the platform's default character set.

    Converts the buffer's contents into a string decoding bytes using the platform's default character set. The length of the new String is a function of the character set, and hence may not be equal to the size of the buffer.

    This method always replaces malformed-input and unmappable-character sequences with the default replacement string for the platform's default character set. The plain java.nio.charset.CharsetDecoder class should be used when more control over the decoding process is required.

    returns

    String decoded from the buffer's contents.

    Definition Classes
    CharBufferSegOutputStream → AnyRef → Any
    Since

    JDK1.1

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def write(b: Array[Char], off: Int, len: Int): Unit

    Writes len bytes from the specified byte array starting at offset off to this byte array output stream.

    Writes len bytes from the specified byte array starting at offset off to this byte array output stream.

    b

    the data.

    off

    the start offset in the data.

    len

    the number of bytes to write.

  29. def write(s: String): Unit

  30. def write(b: Array[Char]): Unit

Inherited from AnyRef

Inherited from Any