public class StreamHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.compress.archivers.ArchiveInputStream |
getInputStream(ArchiveStreamFactory factory,
org.apache.tools.ant.types.Resource r,
java.lang.String encoding)
If the factory knows about files and the resource can provide
one, returns an ArchiveInputStream for it, otherwise returns
null.
|
static org.apache.commons.compress.compressors.CompressorInputStream |
getInputStream(CompressorStreamFactory factory,
org.apache.tools.ant.types.Resource r)
If the factory knows about files and the resource can provide
one, returns an CompressorInputStream for it, otherwise returns
null.
|
static org.apache.commons.compress.archivers.ArchiveOutputStream |
getOutputStream(ArchiveStreamFactory factory,
org.apache.tools.ant.types.Resource r,
java.lang.String encoding)
If the factory knows about files and the resource can provide
one, returns an ArchiveOutputStream for it, otherwise returns
null.
|
static org.apache.commons.compress.compressors.CompressorOutputStream |
getOutputStream(CompressorStreamFactory factory,
org.apache.tools.ant.types.Resource r)
If the factory knows about files and the resource can provide
one, returns an CompressorOutputStream for it, otherwise returns
null.
|
public static org.apache.commons.compress.archivers.ArchiveInputStream getInputStream(ArchiveStreamFactory factory, org.apache.tools.ant.types.Resource r, java.lang.String encoding) throws java.io.IOException
r
- the resource to read fromencoding
- the encoding of the entry namesjava.io.IOException
public static org.apache.commons.compress.archivers.ArchiveOutputStream getOutputStream(ArchiveStreamFactory factory, org.apache.tools.ant.types.Resource r, java.lang.String encoding) throws java.io.IOException
r
- the resource to write toencoding
- the encoding of the entry namesjava.io.IOException
public static org.apache.commons.compress.compressors.CompressorInputStream getInputStream(CompressorStreamFactory factory, org.apache.tools.ant.types.Resource r) throws java.io.IOException
r
- the resource to read fromjava.io.IOException
public static org.apache.commons.compress.compressors.CompressorOutputStream getOutputStream(CompressorStreamFactory factory, org.apache.tools.ant.types.Resource r) throws java.io.IOException
r
- the resource to write tojava.io.IOException