IWritableCharSequence¶
-
public interface
IWritableCharSequenceextends CharSequence, Closeable, IAutoCloseable¶ Interface representing a CharSequence that can be written to. It must implement close even if it is a NOOP function.
Methods¶
append¶
-
void
append(char parChar)¶ Append a character to the sequence of characters.
Parameters: - parChar – The character to append.
Throws: - IOException – On write failure.
append¶
-
void
append(CharSequence parCharSequence)¶ Append a character sequence to the sequence of characters.
Parameters: - parCharSequence – The character sequence to append.
Throws: - IOException – On write failure.
isRestrictedToCapacity¶
-
boolean
isRestrictedToCapacity()¶ Check if this buffer is restricted to the initial capacity. If it is, we will create more buffers before going over the initial capacity. If it is not, we will expect it to handle resizing itself. Note that the result of this will be cached. Changing values at runtime is not supported.
Returns: True if this buffer is restricted to the initial capacity. False otherwise.