// Note that that this could be a double byte character
// set - bug report by Masafumi Watanabe
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 {
// Note that that this could be a double byte character
// set - bug report by Masafumi Watanabe
computeContentLength(content);
if ((!computeContentLength)) {
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;
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;
}