public class GzipMarshaller extends Object implements DirectoryMarshaller
NoCompressionMarshaller
.DirectoryMarshaller.Factory, DirectoryMarshaller.Type
Constructor and Description |
---|
GzipMarshaller() |
Modifier and Type | Method and Description |
---|---|
long |
read(Path path,
InputStream inputStream)
Reads the content from the inputStream and writes them to the specified path.
|
long |
write(Path path,
OutputStream outputStream)
Writes the contents of path ot outputStream such that it can be read by
DirectoryMarshaller.read(Path, InputStream) . |
public long write(Path path, OutputStream outputStream) throws IOException, InterruptedException
DirectoryMarshaller
DirectoryMarshaller.read(Path, InputStream)
.write
in interface DirectoryMarshaller
path
- the directory to marshalloutputStream
- the output stream that the marshalled informationIOException
InterruptedException
public long read(Path path, InputStream inputStream) throws IOException
DirectoryMarshaller
read
in interface DirectoryMarshaller
path
- the output pathinputStream
- the stream to read the data fromIOException
Copyright © 2023. All Rights Reserved.