equal
deleted
inserted
replaced
177 * any state that requires isolation (such as temporary buffer.) |
177 * any state that requires isolation (such as temporary buffer.) |
178 * |
178 * |
179 * <p> |
179 * <p> |
180 * If the {@link Codec} implementation is already |
180 * If the {@link Codec} implementation is already |
181 * re-entrant and multi-thread safe to begin with, |
181 * re-entrant and multi-thread safe to begin with, |
182 * then this method may simply return <tt>this</tt>. |
182 * then this method may simply return {@code this}. |
183 */ |
183 */ |
184 Codec copy(); |
184 Codec copy(); |
185 |
185 |
186 /** |
186 /** |
187 * Reads bytes from {@link InputStream} and constructs a {@link Message}. |
187 * Reads bytes from {@link InputStream} and constructs a {@link Message}. |
206 * |
206 * |
207 * @param contentType |
207 * @param contentType |
208 * The MIME content type (like "application/xml") of this byte stream. |
208 * The MIME content type (like "application/xml") of this byte stream. |
209 * Thie text includes all the sub-headers of the content-type header. Therefore, |
209 * Thie text includes all the sub-headers of the content-type header. Therefore, |
210 * in more complex case, this could be something like |
210 * in more complex case, this could be something like |
211 * <tt>multipart/related; boundary="--=_outer_boundary"; type="multipart/alternative"</tt>. |
211 * {@code multipart/related; boundary="--=_outer_boundary"; type="multipart/alternative"}. |
212 * This parameter must not be null. |
212 * This parameter must not be null. |
213 * |
213 * |
214 * @param response |
214 * @param response |
215 * The parsed {@link Message} will be set to this {@link Packet}. |
215 * The parsed {@link Message} will be set to this {@link Packet}. |
216 * {@link Codec} may add additional properties to this {@link Packet}. |
216 * {@link Codec} may add additional properties to this {@link Packet}. |