Package io.datarouter.bytes
Class GzipBlockStream.GzipBlockStreamEncodedBlock
java.lang.Object
io.datarouter.bytes.GzipBlockStream.GzipBlockStreamEncodedBlock
- Enclosing class:
- GzipBlockStream
Returned while encoding with convenience methods.
Each of these can be appended to an OutputStream.
A Scanner of these can be converted to an InputStream.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamtoInputStream(io.datarouter.scanner.Scanner<GzipBlockStream.GzipBlockStreamEncodedBlock> blocks) voidtoOutputStream(OutputStream outputStream) Write the length bytes followed by the data bytes.
-
Method Details
-
toOutputStream
Write the length bytes followed by the data bytes. -
toInputStream
public static InputStream toInputStream(io.datarouter.scanner.Scanner<GzipBlockStream.GzipBlockStreamEncodedBlock> blocks)
-