@@ -358,9 +358,8 @@ protected int endOfHeaderLength() {
358
358
* Return the length of the main content
359
359
*
360
360
* @return long The length.
361
- * @throws IOException If an IO problem occurs
362
361
*/
363
- protected abstract long lengthOfData () throws IOException ;
362
+ protected abstract long lengthOfData ();
364
363
365
364
/**
366
365
* Write the end data to the output stream.
@@ -399,7 +398,7 @@ public void send(OutputStream out) throws IOException {
399
398
* @return long The length.
400
399
* @throws IOException If an IO problem occurs
401
400
*/
402
- public long length () throws IOException {
401
+ public long length () {
403
402
404
403
long lengthOfData = lengthOfData ();
405
404
@@ -501,9 +500,8 @@ public static void sendPart(OutputStream out, Part part, byte[] partBoundary) th
501
500
*
502
501
* @param parts The parts.
503
502
* @return The total length
504
- * @throws IOException If an I/O error occurs while writing the parts.
505
503
*/
506
- public static long getLengthOfParts (Part [] parts ) throws IOException {
504
+ public static long getLengthOfParts (Part [] parts ) {
507
505
return getLengthOfParts (parts , DEFAULT_BOUNDARY_BYTES );
508
506
}
509
507
@@ -516,7 +514,7 @@ public static long getLengthOfParts(Part[] parts) throws IOException {
516
514
* @throws IOException If an I/O error occurs while writing the parts.
517
515
* @since 3.0
518
516
*/
519
- public static long getLengthOfParts (Part [] parts , byte [] partBoundary ) throws IOException {
517
+ public static long getLengthOfParts (Part [] parts , byte [] partBoundary ) {
520
518
if (parts == null ) {
521
519
throw new IllegalArgumentException ("Parts may not be null" );
522
520
}
0 commit comments