Package com.sun.xml.ws.encoding
Interface RootOnlyCodec
-
- All Superinterfaces:
Codec
- All Known Implementing Classes:
StreamSOAPCodec
public interface RootOnlyCodec extends Codec
Codecthat works only on the root part of the MIME/multipart. It doesn't work on the attachment parts, so it takesAttachmentSetas an argument and creates a correspondingMessage. This enables attachments to be parsed lazily by wrapping the mimepull parser into anAttachmentSet- Author:
- Jitendra Kotamraju
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecode(InputStream in, String contentType, Packet packet, AttachmentSet att)Reads root part bytes fromInputStreamand constructs aMessagealong with the given attachments.voiddecode(ReadableByteChannel in, String contentType, Packet packet, AttachmentSet att)-
Methods inherited from interface com.sun.xml.ws.api.pipe.Codec
copy, decode, decode, encode, encode, getMimeType, getStaticContentType
-
-
-
-
Method Detail
-
decode
void decode(@NotNull InputStream in, @NotNull String contentType, @NotNull Packet packet, @NotNull AttachmentSet att) throws IOException
Reads root part bytes fromInputStreamand constructs aMessagealong with the given attachments.- Parameters:
in- root part's datacontentType- root part's MIME content type (like "application/xml")packet- the new createdMessageis set in this packetatt- attachments- Throws:
IOException- ifInputStreamthrows an exception.
-
decode
void decode(@NotNull ReadableByteChannel in, @NotNull String contentType, @NotNull Packet packet, @NotNull AttachmentSet att)
-
-