net.ranides.assira.io
Class MultiOutputStream
java.lang.Object
java.io.OutputStream
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)
|
MultiOutputStream
public MultiOutputStream(OutputStream... streams)
- Tworzy nowy obiekt, który przekazuje dane do wszystkich strumieni podanych
jako argumenty.
- Parameters:
streams -
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.