Package com.e1c.g5.v8.fastzip
Class StaticEntryRegistry
java.lang.Object
com.e1c.g5.v8.fastzip.StaticEntryRegistry
- All Implemented Interfaces:
- IFzipEntryRegistry
Testing entry registry which manages a fixed set of FastZIP entries.
- 
Field SummaryFields inherited from interface com.e1c.g5.v8.fastzip.entry.IFzipEntryRegistryMAX_ENTRY_DESCRIPTOR_LENGTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreadEntryDescriptor(Supplier<DataInput> inputSupplier) Deserializes entry fromDataInput.voidwriteEntryDescriptor(IFzipEntry entry, DataOutput out) Serializes an entry toDataOutput.
- 
Constructor Details- 
StaticEntryRegistry
 
- 
- 
Method Details- 
getEntries
- 
writeEntryDescriptorDescription copied from interface:IFzipEntryRegistrySerializes an entry toDataOutput.The behaviour is unspecified if more than IFzipEntryRegistry.MAX_ENTRY_DESCRIPTOR_LENGTHbytes were written to the output.- Specified by:
- writeEntryDescriptorin interface- IFzipEntryRegistry
- Parameters:
- entry- the entry, never- null
- out- the output, never- null
- Throws:
- IOException- if an IO error occurs
 
- 
readEntryDescriptorDescription copied from interface:IFzipEntryRegistryDeserializes entry fromDataInput.The input is provided by a supplier. The supplier may be invoked multiple times. Each invocation will yield an input with the same data. The number of bytes read from the last supplied input must be equal to the number of bytes written on serialization. Otherwise the behaviour is unspecified. The behaviour is unspecified if more than IFzipEntryRegistry.MAX_ENTRY_DESCRIPTOR_LENGTHbytes were read from the input.- Specified by:
- readEntryDescriptorin interface- IFzipEntryRegistry
- Parameters:
- inputSupplier- the input supplier, never- null
- Returns:
- the deserialized entry, cannot be null
- Throws:
- IOException- if an IO error occurs or the entry cannot be deserialized
 
 
-