Package com.e1c.g5.v8.fastzip
Class StaticEntry
java.lang.Object
com.e1c.g5.v8.fastzip.StaticEntry
- All Implemented Interfaces:
IFzipEntry
Testing FastZIP entry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(ReadableByteChannel channel) Read and restore the entry from a byte channel.void
write
(WritableByteChannel channel) Write the entry to a byte channel.
-
Constructor Details
-
StaticEntry
public StaticEntry(byte[] bytes, int checkedSize)
-
-
Method Details
-
read
Description copied from interface:IFzipEntry
Read and restore the entry from a byte channel.- Specified by:
read
in interfaceIFzipEntry
- Parameters:
channel
- the input channel, nevernull
- Throws:
IOException
- if an IO error occurs
-
write
Description copied from interface:IFzipEntry
Write the entry to a byte channel.- Specified by:
write
in interfaceIFzipEntry
- Parameters:
channel
- the output channel, nevernull
- Throws:
IOException
- if an IO error occurs
-