electric.servlet.streams
Class BufferedServletOutput

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

public final class BufferedServletOutput
extends javax.servlet.ServletOutputStream

BufferedServletOutput.

Author:
webMethods

Constructor Summary
BufferedServletOutput(java.io.OutputStream output, int bufferSize)
           
BufferedServletOutput(java.io.OutputStream output, int bufferSize, boolean writeOutput)
           
 
Method Summary
 void close()
           
 void flush()
           
 int getBytesWritten()
           
 void resetBuffer()
           
 void setBufferSize(int bufferSize)
           
 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

BufferedServletOutput

public BufferedServletOutput(java.io.OutputStream output,
                             int bufferSize)
Parameters:
output -
bufferSize -

BufferedServletOutput

public BufferedServletOutput(java.io.OutputStream output,
                             int bufferSize,
                             boolean writeOutput)
Parameters:
output -
bufferSize -
writeOutput -
Method Detail

setBufferSize

public void setBufferSize(int bufferSize)
Parameters:
bufferSize -

getBytesWritten

public int getBytesWritten()
Returns:
total number of bytes written to this stream

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

resetBuffer

public void resetBuffer()


copyright© 2001-2004 by webMethods All Rights Reserved.