Class

molecule.utils

CharBufferSegOutputStream

Related Doc: package utils

Permalink

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.

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

Instance Constructors

  1. new CharBufferSegOutputStream()

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var buffer: seg.Seg[CharBuffer]

    Permalink

    The buffer where data is stored.

    The buffer where data is stored.

    Attributes
    protected
  6. var ccount: Int

    Permalink

    The number of valid bytes in the buffer.

    The number of valid bytes in the buffer.

    Attributes
    protected
  7. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def reset(): Unit

    Permalink

    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

  18. def result(): seg.Seg[CharBuffer]

    Permalink

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

  19. def size(): Int

    Permalink

    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

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

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

    Permalink

    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()

  22. def toString(): String

    Permalink

    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 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

  23. final def wait(): Unit

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

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

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

    Permalink

    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.

  27. def write(s: String): Unit

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

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped