|
@@ -130,14 +130,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Byte.parseByte(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -170,14 +166,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -217,14 +209,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return byteArrays.toArray(new byte[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -234,14 +222,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Integer.parseInt(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -273,14 +257,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -323,14 +303,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return intArrays.toArray(new int[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -340,14 +316,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Float.parseFloat(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -412,14 +384,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
}
|
|
|
}
|
|
|
return tmp;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -429,14 +397,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Double.parseDouble(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -468,14 +432,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -514,14 +474,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return doubleArrays.toArray(new double[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -531,14 +487,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Long.parseLong(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -570,14 +522,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -616,14 +564,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return longArrays.toArray(new long[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -633,14 +577,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
if (tmpString == null || tmpString.length() < 1) return defVal;
|
|
|
try {
|
|
|
return Short.parseShort(tmpString);
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -672,14 +612,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -719,14 +655,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return shortArrays.toArray(new short[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -813,14 +745,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return booleanArrays.toArray(new boolean[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -871,14 +799,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return strings.toArray(new String[0]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -917,14 +841,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return stringArrays.toArray(new String[0][]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -942,14 +862,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
}
|
|
|
}
|
|
|
return set;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1175,14 +1091,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return savableArrayLists.toArray(new ArrayList[0]);
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1249,14 +1161,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1379,14 +1287,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1413,14 +1317,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1447,14 +1347,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1481,14 +1377,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1518,14 +1410,10 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
return tmp;
|
|
|
} catch (IOException ioe) {
|
|
|
throw ioe;
|
|
|
- } catch (NumberFormatException nfe) {
|
|
|
+ } catch (NumberFormatException | DOMException nfe) {
|
|
|
IOException io = new IOException(nfe.toString());
|
|
|
io.initCause(nfe);
|
|
|
throw io;
|
|
|
- } catch (DOMException de) {
|
|
|
- IOException io = new IOException(de.toString());
|
|
|
- io.initCause(de);
|
|
|
- throw io;
|
|
|
}
|
|
|
}
|
|
|
|