Programmer Reference : UnicodeSupport : UnicodeLimitedWriteStream
UnicodeLimitedWriteStream
Description
This is an adapter class used for bridging <UnicodeView>s with <LimitedWriteStream>s.
Instance State
limit: number of unicode graphemes to limit
limitBlock: block to eval when limit is hit
Class Methods
None
Instance Methods
nextPut:
   Writes the argument to the stream.
   Appends @anObject to the receiver’s past sequence values. If the receiver’s future sequence
   values is not empty, removes its first object.

   If the size of the receiver's past sequence values is >= to the output limit set for the receiver,
   then the limitBlock is evaluated rather than appending @anObject to the receiver's past
   sequence values.
    
   Arguments:
    anObject - <Object> @see implementors of #asGrapheme
   Raises:
    It is erroneous if anObject is an object that does not conform to the receiver’s sequence value type.
nextPutAll:
   Enumerates the argument, adding each element to the receiver.
   Has the effect of enumerating @aCollection with the message #do: and adding each element
   to the receiver with #nextPut:. That is, aCollection do: [ :each | receiver nextPut: each ]
      
   Arguments:
    aCollection - <Collection> uncaptured
   Raises:
    It is erroneous if any element of aCollection is an object that does not conform to the receiver’s
    sequence value type.
setLimit:limitBlock:
   Limit the number of elements this stream will write to @sizeLimit.  When the
   limit is reached, execute @aNiladicBlock (typically a block that returns the
   contents of the stream).
   
   Arguments:
    sizeLimit - <Integer>
    aNiladicBlock - <Block> 0-arg
Last modified date: 01/18/2023