public void setMessageContent(byte[] content, boolean strict, boolean computeContentLength, int givenLength)
            throws ParseException {
        // Note that that this could be a double byte character
        // set - bug report by Masafumi Watanabe
        computeContentLength(content);
        if ((!computeContentLength)) {
            if ((!strict && this.contentLengthHeader.getContentLength() != givenLength)
                    || this.contentLengthHeader.getContentLength() < givenLength) {
                throw new ParseException("Invalid content length "
                        + this.contentLengthHeader.getContentLength() + " / " + givenLength, 0);
            }
        }
        messageContent = null;
        messageContentBytes = content;
        messageContentObject = null;
    }
public void setMessageContent(byte[] content, boolean strict, boolean computeContentLength, int givenLength)
            throws ParseException {
       
       
        computeContentLength(content);
        if ((!computeContentLength)) {
            if ((!strict && this.contentLengthHeader.getContentLength() != givenLength)
                    || this.contentLengthHeader.getContentLength() < givenLength) {
                throw new ParseException("Invalid content length "
                        + this.contentLengthHeader.getContentLength() + " / " + givenLength, 0);
            }
        }
        messageContent = null;
        messageContentBytes = content;
        messageContentObject = null;
    }
public void setmessagecontent(byte[] content, boolean strict, boolean computecontentlength, int givenlength) throws parseexception { computecontentlength(content); if ((!computecontentlength)) { if ((!strict && this.contentlengthheader.getcontentlength() != givenlength) || this.contentlengthheader.getcontentlength() < givenlength) { throw new parseexception("invalid content length " + this.contentlengthheader.getcontentlength() + " / " + givenlength, 0); } } messagecontent = null; messagecontentbytes = content; messagecontentobject = null; }