TrueZIP 6.8.3

de.schlichtherle.io
Class Streams

java.lang.Object
  extended by 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

Nested Class Summary
private static class Streams.Buffer
           
 
Field Summary
private static Executor readerExecutor
           
 
Constructor Summary
protected Streams()
          This class cannot get instantiated.
 
Method Summary
private static Streams.Buffer[] allocateBuffers()
           
static void cat(InputStream in, OutputStream out)
          The name of this method is inspired by the Unix command line utility cat.
private static Executor getExecutor(String threadName)
           
private static void releaseBuffers(Streams.Buffer[] buffers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerExecutor

private static final Executor readerExecutor
Constructor Detail

Streams

protected Streams()
This class cannot get instantiated.

Method Detail

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)

TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.