text: public static CharacterBuffer newCharacterBuffer(final int bufferSize) {if (bufferSize < 2) {throw new IllegalArgumentException("buffersize must be >= 2");}return new CharacterBuffer(new char[bufferSize], 0, 0);}