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);}
public static CharacterBuffer NewCharacterBuffer(int bufferSize){if (bufferSize < 2){throw new ArgumentException("buffersize must be >= 2");}return new CharacterBuffer(new char[bufferSize], 0, 0);}