
Writes bytes to the current tar archive entry. This method
is aware of the current entry and will throw an exception if
you attempt to write bytes past the length specified for the
current entry. The method is also (painfully) aware of the
record buffering required by TarBuffer, and manages buffers
that are not a multiple of recordsize in length, including
assembling records from small buffers.
Parameters:
-
wBuf - The buffer to write to the archive.
-
wOffset - The offset in the buffer from which to get bytes.
-
numToWrite - The number of bytes to write.
Throws:
-
java.io.IOException - on error