public Document getDocumentBody() throws IOException {
    """
	Returns this response's body as a DOM <code>Document</code>. This
	response must have a document body.
	
	@exception IOException if there is an I/O error
    """
        Assert.isTrue(hasDocumentBody);
        Assert.isTrue(!hasInputStream);
        // Lazily parse the message body.
        if (document == null) {
            String characterEncoding = null;
            ContentType contentType = getContentType();
            if (contentType != null) {
                characterEncoding = contentType.getValue("charset"); //$NON-NLS-1$
            }
            if (characterEncoding == null) {
                characterEncoding = "ASCII"; //$NON-NLS-1$
            }
            IDocumentMarshaler marshaler = new DocumentMarshaler();
            document = marshaler.parse(new InputStreamReader(is, characterEncoding));
        }
        return document;
    }
public Document getDocumentBody() throws IOException {
        Assert.isTrue(hasDocumentBody);
        Assert.isTrue(!hasInputStream);
        // Lazily parse the message body.
        if (document == null) {
            String characterEncoding = null;
            ContentType contentType = getContentType();
            if (contentType != null) {
                characterEncoding = contentType.getValue("charset"); //$NON-NLS-1$
            }
            if (characterEncoding == null) {
                characterEncoding = "ASCII"; //$NON-NLS-1$
            }
            IDocumentMarshaler marshaler = new DocumentMarshaler();
            document = marshaler.parse(new InputStreamReader(is, characterEncoding));
        }
        return document;
    }
public Document getDocumentBody ( ) throws IOException { Assert . isTrue ( hasDocumentBody ) ; Assert . isTrue ( ! hasInputStream ) ; // Lazily parse the message body. if ( document == null ) { String characterEncoding = null ; ContentType contentType = getContentType ( ) ; if ( contentType != null ) { characterEncoding = contentType . getValue ( "charset" ) ; //$NON-NLS-1$ } if ( characterEncoding == null ) { characterEncoding = "ASCII" ; //$NON-NLS-1$ } IDocumentMarshaler marshaler = new DocumentMarshaler ( ) ; document = marshaler . parse ( new InputStreamReader ( is , characterEncoding ) ) ; } return document ; }
Returns this response's body as a DOM <code>Document</code>. This
response must have a document body.

@exception IOException if there is an I/O error
Returns this response s body as a DOM <code > Document< / code > . This response must have a document body .