Package org.apache.beam.sdk.util
Class LzoCompression
- java.lang.Object
-
- org.apache.beam.sdk.util.LzoCompression
-
public class LzoCompression extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LzoCompression()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStream
createLzoInputStream(java.io.InputStream inputStream)
Create anInputStream
that will read from the givenInputStream
usingLzoCodec
.static java.io.OutputStream
createLzoOutputStream(java.io.OutputStream outputStream)
Create anOutputStream
that will write to the givenOutputStream
.static java.io.InputStream
createLzopInputStream(java.io.InputStream inputStream)
Create anInputStream
that will read from the givenInputStream
usingLzopCodec
.static java.io.OutputStream
createLzopOutputStream(java.io.OutputStream outputStream)
Create aOutputStream
that will write to the givenOutputStream
.
-
-
-
Method Detail
-
createLzoInputStream
public static java.io.InputStream createLzoInputStream(java.io.InputStream inputStream) throws java.io.IOException
Create anInputStream
that will read from the givenInputStream
usingLzoCodec
.- Parameters:
inputStream
- the stream to read compressed bytes from- Returns:
- a stream to read uncompressed bytes from
- Throws:
java.io.IOException
-
createLzopInputStream
public static java.io.InputStream createLzopInputStream(java.io.InputStream inputStream) throws java.io.IOException
Create anInputStream
that will read from the givenInputStream
usingLzopCodec
.- Parameters:
inputStream
- the stream to read compressed bytes from- Returns:
- a stream to read uncompressed bytes from
- Throws:
java.io.IOException
-
createLzoOutputStream
public static java.io.OutputStream createLzoOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
Create anOutputStream
that will write to the givenOutputStream
.- Parameters:
outputStream
- the location for the final output stream- Returns:
- a stream the user can write uncompressed data to have it compressed
- Throws:
java.io.IOException
-
createLzopOutputStream
public static java.io.OutputStream createLzopOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
Create aOutputStream
that will write to the givenOutputStream
.- Parameters:
outputStream
- the location for the final output stream- Returns:
- a stream the user can write uncompressed data to have it compressed
- Throws:
java.io.IOException
-
-