Lines Matching refs:part
101 * while reading the bytes of the part.
103 * @param index sequential order of the part. starts with zero.
104 * @return attachemnt part
108 MIMEPart part = (index < partsList.size()) ? partsList.get(index) : null;
109 if (parsed && part == null) {
110 throw new MIMEParsingException("There is no "+index+" attachment part ");
112 if (part == null) {
113 // Parsing will done lazily and will be driven by reading the part
114 part = new MIMEPart(this);
115 partsList.add(index, part);
117 LOGGER.fine("Got attachment at index="+index+" attachment="+part);
118 return part;
125 * message is done lazily and is done while reading the bytes of the part.
127 * @param contentId Content-ID of the part, expects Content-ID without <, >
128 * @return attachemnt part
132 MIMEPart part = getDecodedCidPart(contentId);
133 if (parsed && part == null) {
134 throw new MIMEParsingException("There is no attachment part with Content-ID = "+contentId);
136 if (part == null) {
137 // Parsing is done lazily and is driven by reading the part
138 part = new MIMEPart(this, contentId);
139 partsMap.put(contentId, part);
141 LOGGER.fine("Got attachment for Content-ID="+contentId+" attachment="+part);
142 return part;
147 MIMEPart part = partsMap.get(cid);
148 if (part == null) {
152 part = partsMap.get(tempCid);
158 return part;