Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 10, 2024
1 parent e0bb5c3 commit 392cb9c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ public void close() throws IOException {
* <p>
* 8.3.3 Split ZIP files are typically written to the same location and are subject to name collisions if the spanned name format is used since each segment
* will reside on the same drive. To avoid name collisions, split archives are named as follows.
* </p>
* <p>
* Segment 1 = filename.z01 Segment n-1 = filename.z(n-1) Segment n = filename.zip
* </p>
* <p>
* NOTE: The ZIP split segment begin from 1,2,3,... , and we're creating a new segment, so the new segment suffix should be (currentSplitSegmentIndex + 2)
* </p>
*
* @param zipSplitSegmentSuffixIndex
* @return
Expand Down Expand Up @@ -214,6 +217,7 @@ public long position() {
* <p>
* 4.4.1.5 The end of central directory record and the Zip64 end of central directory locator record MUST reside on the same disk when splitting or spanning
* an archive.
* </p>
*
* @param unsplittableContentSize
* @throws IllegalArgumentException
Expand All @@ -236,7 +240,7 @@ public void write(final byte[] b) throws IOException {
}

/**
* Write the data to ZIP split segments, if the remaining space of current split segment is not enough, then a new split segment should be created
* Writes the data to ZIP split segments, if the remaining space of current split segment is not enough, then a new split segment should be created
*
* @param b data to write
* @param off offset of the start of data in param b
Expand Down Expand Up @@ -309,7 +313,7 @@ private void writeToSegment(
}

/**
* Write the ZIP split signature (0x08074B50) to the head of the first ZIP split segment
* Writes the ZIP split signature (0x08074B50) to the head of the first ZIP split segment
*
* @throws IOException
*/
Expand Down

0 comments on commit 392cb9c

Please sign in to comment.