public class GzipArchiveBuffer extends PlainArchiveBuffer
PlainArchiveBuffer but with gzip compression.createRoot, outputStreamdestinations, 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, writeToDestinationexit, getBatchOutputPath, handleDeviceFailure, preparepublic 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
PlainArchiveBufferputBytes in class PlainArchiveBufferbytes - content to writeIOException - Unable to writeprotected byte[] getByteArray()
PlainArchiveBuffergetByteArray in class PlainArchiveBufferCopyright © 2023. All rights reserved.