Lines Matching defs:part

51      * Specify the part position.
89 * Whether to parse content-disposition part header
97 * @param parseContentDisposition whether to parse the Content-Disposition part header
189 // should take only the first part.
846 PduPart part = new PduPart();
849 // Invalid part.
853 /* parse part's content-type */
857 part.setContentType(contentType);
859 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*"
865 part.setName(name);
871 part.setCharset(charset);
874 /* parse part's headers */
878 if (false == parsePartHeaders(pduDataStream, part, partHeaderLen)) {
879 // Parse part header faild.
890 if ((null == part.getContentLocation())
891 && (null == part.getName())
892 && (null == part.getFilename())
893 && (null == part.getContentId())) {
894 part.setContentLocation(Long.toOctalString(
898 /* get part's data */
901 String partContentType = new String(part.getContentType());
906 // take the first part of children.
907 part = childBody.getPart(0);
910 byte[] partDataEncoding = part.getContentTransferEncoding();
924 log("Decode part data error!");
927 part.setData(partData);
931 /* add this part to body */
932 if (THE_FIRST_PART == checkPartPosition(part)) {
933 /* this is the first part */
934 body.addPart(0, part);
936 /* add the part to the end */
937 body.addPart(part);
1078 * The Quote is not part of the contents.
1375 * type of the "root" body part. It permits a MIME user agent to
1377 * part. If the value of the type parameter and the root body part's
1418 * object's "root". If not present the "root" is the first body part in
1587 * Parse part's headers.
1590 * @param part to store the header informations of the part
1595 PduPart part, int length) {
1597 assert(null != part);
1611 * Within SMIL part the reference to the media object parts SHALL use
1613 * and the corresponding WSP part headers in media object parts
1634 part.setContentLocation(contentLocation);
1647 part.setContentId(contentId);
1676 part.setContentDisposition(PduPart.DISPOSITION_FROM_DATA);
1678 part.setContentDisposition(PduPart.DISPOSITION_ATTACHMENT);
1680 part.setContentDisposition(PduPart.DISPOSITION_INLINE);
1684 part.setContentDisposition(parseWapString(pduDataStream
1693 part.setFilename(parseWapString(pduDataStream
1729 part.setContentTransferEncoding(tempValue);
1738 // Skip all headers of this part.
1756 * Check the position of a specified part.
1758 * @param part the part to be checked
1759 * @return part position, THE_FIRST_PART when it's the
1762 private static int checkPartPosition(PduPart part) {
1763 assert(null != part);
1769 /* check part's content-id */
1771 byte[] contentId = part.getContentId();
1777 // This is not the first part, so append to end (keeping the original order)
1782 /* check part's content-type */
1784 byte[] contentType = part.getContentType();