public class CompressionUtils extends Object
| Constructor and Description |
|---|
CompressionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getInputStream(String aLocation,
InputStream aStream)
Get an uncompressed input stream for a given input stream created for a particular location.
|
static OutputStream |
getOutputStream(File aFile)
Make sure the target directory exists and get a stream writing to the specified file within.
|
static String |
stripCompressionExtension(String aLocation) |
public static InputStream getInputStream(String aLocation, InputStream aStream) throws IOException
aLocation - a resource location (e.g. a path, URL, etc.)aStream - a raw stream of potentially compressed data.IOException - if an I/O error has occurred,public static OutputStream getOutputStream(File aFile) throws IOException
aFile - the target file.IOException - if an I/O error has occurred,CompressionMethodCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.