private String setUpBuffer(String bufferContents) { buffer.put(bufferContents.getBytes()); buffer.flip(); return bufferContents;
private String setUpBuffer(String bufferContents) throws UnsupportedEncodingException { byte[] bytes = bufferContents.getBytes(); return setUpBuffer(bytes, "ISO_8859-1");
    private String setUpBuffer(String bufferContents) {        buffer.put(bufferContents.getBytes());        buffer.flip();        return bufferContents;    }