/** * Buffers the SAX input source and returns the buffer * as an XML string. */ @Override public String toString() { try { return new String(toBuffer(),"UTF-8"); } catch (UnsupportedEncodingException e) { throw new MarkLogicIOException(e); } }
/** * Buffers the SAX input source and returns the buffer * as an XML string. */ @Override public String toString() { try { return new String(toBuffer(),"UTF-8"); } catch (UnsupportedEncodingException e) { throw new MarkLogicIOException(e); } }
after = inputSourceH.toBuffer(); assertNotNull("InputSource after",after); assertXMLEqual("InputSource buffering",beforeStr,new String(after));