de.schlichtherle.io
Class Streams
java.lang.Object
de.schlichtherle.io.Streams
final class Streams
- extends Object
Provides static utility methods for InputStreams and
OutputStreams.
TODO: Consider making this class public in TrueZIP 7 and remove the
stub methods for the same purpose in File.
- Since:
- TrueZIP 6.5
- Author:
- Christian Schlichtherle
|
Constructor Summary |
protected |
Streams()
This class cannot get instantiated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readerExecutor
private static final Executor readerExecutor
Streams
protected Streams()
- This class cannot get instantiated.
cat
public static void cat(InputStream in,
OutputStream out)
throws IOException
- The name of this method is inspired by the Unix command line utility
cat.
- Throws:
IOException- See Also:
File.cat(InputStream, OutputStream)
getExecutor
private static Executor getExecutor(String threadName)
allocateBuffers
private static final Streams.Buffer[] allocateBuffers()
releaseBuffers
private static final void releaseBuffers(Streams.Buffer[] buffers)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.