@Override public void write(OutputStream outputStream) throws IOException { IoUtils.copy(getStream(), outputStream); }
/** * Note that this method relies on {@link #getStream()}. This stream is * closed once fully read. */ @Override public String getText() throws IOException { return IoUtils.toString(getStream(), getCharacterSet()); }