public class GzipArchiveBuffer extends PlainArchiveBuffer
PlainArchiveBuffer
but with gzip compression.createRoot, outputStream
destinations, filename, maxWrites, minWrites, pool
Constructor and Description |
---|
GzipArchiveBuffer(int minWrites,
int maxWrites,
List<org.thales.punch.libraries.objectstorage.tuples.ArchiveDevice> destinations,
org.thales.punch.libraries.record.client.encoder.api.IRecordEncoder<Map<String,Object>> encoder,
org.thales.punch.libraries.record.client.encoder.api.IRecordEncoder.RecordFormat format,
boolean createRoot)
Ctor
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getByteArray()
Get final byte array
|
protected void |
putBytes(byte[] bytes)
Write bytes to correct buffer
|
close, getDigest, getSize, getUncompressedSize, put, writeToDestination
exit, getBatchOutputPath, handleDeviceFailure, prepare
public GzipArchiveBuffer(int minWrites, int maxWrites, List<org.thales.punch.libraries.objectstorage.tuples.ArchiveDevice> destinations, org.thales.punch.libraries.record.client.encoder.api.IRecordEncoder<Map<String,Object>> encoder, org.thales.punch.libraries.record.client.encoder.api.IRecordEncoder.RecordFormat format, boolean createRoot)
createRoot
- true to create the root directoryprotected void putBytes(byte[] bytes) throws IOException
PlainArchiveBuffer
putBytes
in class PlainArchiveBuffer
bytes
- content to writeIOException
- Unable to writeprotected byte[] getByteArray()
PlainArchiveBuffer
getByteArray
in class PlainArchiveBuffer
Copyright © 2023. All rights reserved.