public interface RootOnlyCodec extends Codec
Codec
that works only on the root part of the MIME/multipart.
It doesn't work on the attachment parts, so it takes AttachmentSet
as an argument and creates a corresponding Message
. This enables
attachments to be parsed lazily by wrapping the mimepull parser into an
AttachmentSet
Modifier and Type | Method and Description |
---|---|
void |
decode(InputStream in,
String contentType,
com.sun.xml.ws.api.message.Packet packet,
com.sun.xml.ws.api.message.AttachmentSet att)
Reads root part bytes from
InputStream and constructs a Message
along with the given attachments. |
void |
decode(ReadableByteChannel in,
String contentType,
com.sun.xml.ws.api.message.Packet packet,
com.sun.xml.ws.api.message.AttachmentSet att) |
copy, decode, decode, encode, encode, getMimeType, getStaticContentType
void decode(@NotNull InputStream in, @NotNull String contentType, @NotNull com.sun.xml.ws.api.message.Packet packet, @NotNull com.sun.xml.ws.api.message.AttachmentSet att) throws IOException
InputStream
and constructs a Message
along with the given attachments.in
- root part's datacontentType
- root part's MIME content type (like "application/xml")packet
- the new created Message
is set in this packetatt
- attachmentsIOException
- if InputStream
throws an exception.void decode(@NotNull ReadableByteChannel in, @NotNull String contentType, @NotNull com.sun.xml.ws.api.message.Packet packet, @NotNull com.sun.xml.ws.api.message.AttachmentSet att)
Copyright © 2015 Oracle Corporation. All rights reserved.