electric.servlet.streams
Class ServletOutput

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byelectric.servlet.streams.ServletOutput

public final class ServletOutput
extends javax.servlet.ServletOutputStream

ServletOutput.

Author:
webMethods

Constructor Summary
ServletOutput(OutboundHTTPResponse response, java.io.OutputStream output)
           
ServletOutput(OutboundHTTPResponse response, java.io.OutputStream output, boolean writeOutput)
           
 
Method Summary
 void close()
           
 void flush()
           
 int getBytesWritten()
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int ch)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletOutput

public ServletOutput(OutboundHTTPResponse response,
                     java.io.OutputStream output)
Parameters:
response -
output -

ServletOutput

public ServletOutput(OutboundHTTPResponse response,
                     java.io.OutputStream output,
                     boolean writeOutput)
Parameters:
response -
output -
Method Detail

getBytesWritten

public int getBytesWritten()
Returns:
total number of bytes written.

write

public void write(int ch)
           throws java.io.IOException
Parameters:
ch -
Throws:
java.io.IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Parameters:
buffer -
offset -
length -
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


copyright© 2001-2004 by webMethods All Rights Reserved.