if (contentStream != null) { try { int size = contentStream.available(); if (size > 0) { return size; } } catch (IOException e) {  } }
    public int getSize() throws MessagingException {        if (content != null) {            return content.length;        }        return -1;    }