@Override public InputStream getBodyContent() throws IOException { return message.getBodyContent(); }
@Override public InputStream getInputStream() throws IOException { // wrap the streams in a BoundedInputStream to make sure it really match with the stored size. switch (type) { case Full: return m.getFullContent(); default: return m.getBodyContent(); } }