Top Description Constructors Methods
org.apache.commons.compress.archivers.zip

pack-priv Class ZipIoUtil

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.nio.channels.FileChannel, .SeekableByteChannel

IO utilities for Zip operations.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
writeFully(final SeekableByteChannel
channel to write to
channel
,
final ByteBuffer
buffer to write
buf
)

Writes full buffer to channel.

pack-priv static void
writeFullyAt(final FileChannel
channel to write to
channel
,
final ByteBuffer
buffer to write
buf
,
final long
position to write at
position
)

Writes full buffer to channel at specified position.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ZipIoUtilback to summary
private ZipIoUtil()

Method Detail

writeFullyback to summary
pack-priv static void writeFully(final SeekableByteChannel channel, final ByteBuffer buf) throws IOException

Writes full buffer to channel.

Parameters
channel:SeekableByteChannel

channel to write to

buf:ByteBuffer

buffer to write

Exceptions
IOException:
when writing fails or fails to write fully
writeFullyAtback to summary
pack-priv static void writeFullyAt(final FileChannel channel, final ByteBuffer buf, final long position) throws IOException

Writes full buffer to channel at specified position.

Parameters
channel:FileChannel

channel to write to

buf:ByteBuffer

buffer to write

position:long

position to write at

Exceptions
IOException:
when writing fails or fails to write fully