org.apache.xml.security.utils
Class UnsyncBufferedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.xml.security.utils.UnsyncBufferedOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class UnsyncBufferedOutputStream
extends OutputStream

A class that buffers without synchronizing its methods

Author:
raul

Constructor Summary
UnsyncBufferedOutputStream(OutputStream out)
          Creates a buffered output stream without synchronization
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int len)
           
 void write(int arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsyncBufferedOutputStream

public UnsyncBufferedOutputStream(OutputStream out)
Creates a buffered output stream without synchronization

Parameters:
out - the outputstream to buffer
Method Detail

write

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

write

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

write

public void write(int arg0)
           throws IOException
Specified by:
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

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.