@Override public byte[] toBuffer() { try { if (content == null) return null; ByteArrayOutputStream buffer = new ByteArrayOutputStream(); write(buffer); return buffer.toByteArray(); } catch (IOException e) { throw new MarkLogicIOException(e); } }
@Override public byte[] toBuffer() { try { if (content == null) return null; ByteArrayOutputStream buffer = new ByteArrayOutputStream(); write(buffer); return buffer.toByteArray(); } catch (IOException e) { throw new MarkLogicIOException(e); } }