org.apache.xml.security.stax.impl.util
Class UnsynchronizedBufferedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.xml.security.stax.impl.util.UnsynchronizedBufferedOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class UnsynchronizedBufferedOutputStream
extends FilterOutputStream


Field Summary
protected  byte[] buffer
           
protected  int count
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
UnsynchronizedBufferedOutputStream(OutputStream out)
           
UnsynchronizedBufferedOutputStream(OutputStream out, int size)
           
 
Method Summary
 void flush()
           
 void write(byte[] bytes, int offset, int length)
           
 void write(int oneByte)
           
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected byte[] buffer

count

protected int count
Constructor Detail

UnsynchronizedBufferedOutputStream

public UnsynchronizedBufferedOutputStream(OutputStream out)

UnsynchronizedBufferedOutputStream

public UnsynchronizedBufferedOutputStream(OutputStream out,
                                          int size)
Method Detail

flush

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

write

public void write(byte[] bytes,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public void write(int oneByte)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.