Lines Matching defs:part

54      * Specify the part position.
185 // should take only the first part.
842 PduPart part = new PduPart();
845 // Invalid part.
849 /* parse part's content-type */
853 part.setContentType(contentType);
855 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*"
861 part.setName(name);
867 part.setCharset(charset);
870 /* parse part's headers */
874 if (false == parsePartHeaders(pduDataStream, part, partHeaderLen)) {
875 // Parse part header faild.
886 if ((null == part.getContentLocation())
887 && (null == part.getName())
888 && (null == part.getFilename())
889 && (null == part.getContentId())) {
890 part.setContentLocation(Long.toOctalString(
894 /* get part's data */
897 String partContentType = new String(part.getContentType());
902 // take the first part of children.
903 part = childBody.getPart(0);
906 byte[] partDataEncoding = part.getContentTransferEncoding();
920 log("Decode part data error!");
923 part.setData(partData);
927 /* add this part to body */
928 if (THE_FIRST_PART == checkPartPosition(part)) {
929 /* this is the first part */
930 body.addPart(0, part);
932 /* add the part to the end */
933 body.addPart(part);
1074 * The Quote is not part of the contents.
1371 * type of the "root" body part. It permits a MIME user agent to
1373 * part. If the value of the type parameter and the root body part's
1414 * object's "root". If not present the "root" is the first body part in
1583 * Parse part's headers.
1586 * @param part to store the header informations of the part
1591 PduPart part, int length) {
1593 assert(null != part);
1607 * Within SMIL part the reference to the media object parts SHALL use
1609 * and the corresponding WSP part headers in media object parts
1630 part.setContentLocation(contentLocation);
1643 part.setContentId(contentId);
1675 part.setContentDisposition(PduPart.DISPOSITION_FROM_DATA);
1677 part.setContentDisposition(PduPart.DISPOSITION_ATTACHMENT);
1679 part.setContentDisposition(PduPart.DISPOSITION_INLINE);
1683 part.setContentDisposition(parseWapString(pduDataStream
1692 part.setFilename(parseWapString(pduDataStream
1728 part.setContentTransferEncoding(tempValue);
1737 // Skip all headers of this part.
1755 * Check the position of a specified part.
1757 * @param part the part to be checked
1758 * @return part position, THE_FIRST_PART when it's the
1761 private static int checkPartPosition(PduPart part) {
1762 assert(null != part);
1768 /* check part's content-id */
1770 byte[] contentId = part.getContentId();
1778 /* check part's content-type */
1780 byte[] contentType = part.getContentType();