org.atmosphere.gwt.server.impl
Class CountOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.atmosphere.gwt.server.impl.CountOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class CountOutputStream
extends OutputStream


Constructor Summary
CountOutputStream(OutputStream out)
           
 
Method Summary
 void flush()
           
 int getCount()
           
 boolean isIgnoreFlush()
           
 void setIgnoreFlush(boolean ignoreFlush)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountOutputStream

public CountOutputStream(OutputStream out)
Method Detail

getCount

public int getCount()

setIgnoreFlush

public void setIgnoreFlush(boolean ignoreFlush)

isIgnoreFlush

public boolean isIgnoreFlush()

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException


Copyright © 2014. All Rights Reserved.