FileDocCategorySizeDatePackage
LazyStreamCodec.javaAPI DocExample3987Tue May 29 16:56:32 BST 2007com.sun.xml.ws.encoding

LazyStreamCodec

public class LazyStreamCodec extends Object implements com.sun.xml.ws.api.pipe.StreamSOAPCodec
author
K.Venugopal@sun.com

Fields Summary
private com.sun.xml.ws.api.pipe.StreamSOAPCodec
codec
Constructors Summary
public LazyStreamCodec(com.sun.xml.ws.api.pipe.StreamSOAPCodec codec)
Creates a new instance of SecurityStream11Codec

           
       
        this.codec = codec;
    
Methods Summary
public com.sun.xml.ws.api.pipe.Codeccopy()

        return this;
    
public com.sun.xml.ws.api.message.Messagedecode(javax.xml.stream.XMLStreamReader reader)

        return new com.sun.xml.ws.message.stream.LazyStreamBasedMessage(reader,codec);
    
public voiddecode(java.io.InputStream inputStream, java.lang.String string, com.sun.xml.ws.api.message.Packet packet)

        XMLStreamReader reader = XMLStreamReaderFactory.create(null, inputStream,true);
        packet.setMessage(decode(reader));
    
public voiddecode(java.nio.channels.ReadableByteChannel readableByteChannel, java.lang.String string, com.sun.xml.ws.api.message.Packet packet)

        throw new UnsupportedOperationException();
    
public com.sun.xml.ws.api.pipe.ContentTypeencode(com.sun.xml.ws.api.message.Packet packet, java.io.OutputStream outputStream)

        return codec.encode(packet,outputStream);
    
public com.sun.xml.ws.api.pipe.ContentTypeencode(com.sun.xml.ws.api.message.Packet packet, java.nio.channels.WritableByteChannel writableByteChannel)

        return codec.encode(packet,writableByteChannel);
    
public java.lang.StringgetMimeType()

        return codec.getMimeType();
    
public com.sun.xml.ws.api.pipe.ContentTypegetStaticContentType(com.sun.xml.ws.api.message.Packet packet)

        return codec.getStaticContentType(packet);