public static RingBuffer fromString(final String string) {
        char[] chars = string.toCharArray();
        return new RingBuffer(chars, 0, chars.length);
    }
Create a buffer with a specified initial size.

@param initialSize The initial size of the buffer.
stroom-pipeline/src/main/java/stroom/pipeline/xml/converter/ds3/RingBuffer.java