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

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

public class ReplaceableOuputStream
extends FilterOutputStream

A OutputStream which allows to replace another chained output-stream

Version:
$Revision: 1354896 $ $Date: 2012-06-28 11:11:05 +0100 (Thu, 28 Jun 2012) $
Author:
$Author: coheigea $

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ReplaceableOuputStream(OutputStream out)
           
 
Method Summary
 void setNewOutputStream(OutputStream outputStream)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceableOuputStream

public ReplaceableOuputStream(OutputStream out)
Method Detail

setNewOutputStream

public void setNewOutputStream(OutputStream outputStream)

write

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

write

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

write

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


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