Multivalent API

phelps.io
Class OutputStreams

java.lang.Object
  extended by phelps.io.OutputStreams

public class OutputStreams
extends java.lang.Object

Utility methods for OutputStreams.

Version:
$Revision: 1.1 $ $Date: 2003/08/17 14:24:28 $

Field Summary
static java.io.OutputStream DEVNULL
           
 
Method Summary
static java.io.OutputStream compress(java.io.OutputStream os, java.lang.String fileOrType)
          Wraps os with another stream that compresses it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVNULL

public static final java.io.OutputStream DEVNULL
Method Detail

compress

public static java.io.OutputStream compress(java.io.OutputStream os,
                                            java.lang.String fileOrType)
                                     throws java.io.IOException
Wraps os with another stream that compresses it.

Parameters:
fileOrType - filename with compression suffix, or compression type (LZW, gzip, deflate, bzip2).
Throws:
java.io.IOException

Multivalent API