FileDocCategorySizeDatePackage
InputStreamBody.javaAPI DocApache Axis 1.41733Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

InputStreamBody

public class InputStreamBody extends SOAPBodyElement

Fields Summary
protected static Log
log
protected InputStream
inputStream
Constructors Summary
public InputStreamBody(InputStream inputStream)

    
      
    
        this.inputStream = inputStream;
    
Methods Summary
public voidoutputImpl(org.apache.axis.encoding.SerializationContext context)

        try {
            byte[]  buf = new byte[ inputStream.available() ];
            IOUtils.readFully(inputStream,buf);
            String contents = new String(buf);
            context.writeString(contents);
        }
        catch( IOException ex ) {
            throw ex;
        }
        catch( Exception e ) {
            log.error(Messages.getMessage("exception00"), e);
        }