net.ranides.assira.io
Class MultiOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.ranides.assira.io.MultiOutputStream
All Implemented Interfaces:
Closeable, Flushable

public abstract class MultiOutputStream
extends OutputStream

Strumień zapisujący dane do więcej niż jednego celu jednocześnie.

Author:
ranides

Constructor Summary
MultiOutputStream(OutputStream... streams)
          Tworzy nowy obiekt, który przekazuje dane do wszystkich strumieni podanych jako argumenty.
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] data)
           
 void write(byte[] data, int offset, int length)
           
 void write(int data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiOutputStream

public MultiOutputStream(OutputStream... streams)
Tworzy nowy obiekt, który przekazuje dane do wszystkich strumieni podanych jako argumenty.

Parameters:
streams -
Method Detail

write

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

write

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

write

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

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close 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 © 2013. All Rights Reserved.