com.mucommander.io
Class SinkOutputStream
java.lang.Object
java.io.OutputStream
com.mucommander.io.SinkOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class SinkOutputStream
- extends java.io.OutputStream
SinkOutputStream is an OutputStream which implements write() methods as no-ops, loosing data as it get written,
similarily to UNIX /dev/null.
- Author:
- Maxence Bernard
|
Method Summary |
void |
write(byte[] bytes)
Overridden for performance reasons. |
void |
write(byte[] bytes,
int off,
int len)
Overridden for performance reasons. |
void |
write(int i)
|
| Methods inherited from class java.io.OutputStream |
close, flush |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SinkOutputStream
public SinkOutputStream()
write
public void write(int i)
throws java.io.IOException
- Specified by:
write in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] bytes)
throws java.io.IOException
- Overridden for performance reasons.
- Overrides:
write in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] bytes,
int off,
int len)
throws java.io.IOException
- Overridden for performance reasons.
- Overrides:
write in class java.io.OutputStream
- Throws:
java.io.IOException
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard