StringBuffer class

Inheritance

Constructors

StringBuffer({dynamic terminatingChar = '\n', int capacity = 4096})

Properties

capacity int?
maximum data the buffer can hold. If length() of the buffer exceeds this value, AtBufferOverFlowException will be thrown on calling append(data)
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
Message that is stored in the buffer
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminatingChar ↔ dynamic
Define terminatingChar to indicate end of buffer
getter/setter pairinherited

Methods

append(dynamic data) → void
Appends data to currently stored message to buffer. @param incoming data @returns void @throws AtBufferOverFlowException if length() + data.length > capacity
override
canAppend(dynamic data) bool
clear() → void
Clear the message stored in the buffer @returns - void
override
getData() String?
Returns the message stored in the buffer @returns message stored
inherited
isEnd() bool
True - if message ends with terminatingChar. False - otherwise. @returns - boolean value indicating end of buffer
override
isFull() bool
True - is current capacity is greater than or equal to defined capacity. False - otherwise @returns - boolean value indicating whether buffer is full or not.
override
length() int
Calculate current length of the message store in the buffer @returns - length of the buffer
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited