return new ByteArrayInputStream(bufferArray);
return new ByteBufferInputStream(bufferArray);
        public InputStream openStream() {            if (isErrored()) {                return null;            }            if (bufferArray != null) {                return new ByteArrayInputStream(bufferArray);            }            if (bufferFile != null) {                try {                    return new FileInputStream(bufferFile);                } catch (FileNotFoundException e) {                    LOG.error("Can not open buffer file '" + bufferFile                            + "' for image url '" + uri + "'.", e);                }            }            return null;        }