Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove double ImagingException from method signatures #462

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ public void removeXmpXml(final InputStream src, final OutputStream os) throws Im
* @param src Byte array containing JPEG image data.
* @param os OutputStream to write the image to.
* @param xmpXml String containing XMP XML.
* @throws ImagingException if it fails to read the JFIF segments
* @throws ImagingException if it fails to read or write the JFIF segments
* @throws IOException if it fails to read or write the data from the segments
* @throws ImagingException if it fails to write the JFIF segments
*/
public void updateXmpXml(final byte[] src, final OutputStream os, final String xmpXml) throws ImagingException, IOException, ImagingException {
public void updateXmpXml(final byte[] src, final OutputStream os, final String xmpXml) throws ImagingException, IOException {
final ByteSource byteSource = ByteSource.array(src);
updateXmpXml(byteSource, os, xmpXml);
}
Expand All @@ -116,11 +115,10 @@ public void updateXmpXml(final byte[] src, final OutputStream os, final String x
* @param byteSource ByteSource containing JPEG image data.
* @param os OutputStream to write the image to.
* @param xmpXml String containing XMP XML.
* @throws ImagingException if it fails to read the JFIF segments
* @throws ImagingException if it fails to read or write the JFIF segments
* @throws IOException if it fails to read or write the data from the segments
* @throws ImagingException if it fails to write the JFIF segments
*/
public void updateXmpXml(final ByteSource byteSource, final OutputStream os, final String xmpXml) throws ImagingException, IOException, ImagingException {
public void updateXmpXml(final ByteSource byteSource, final OutputStream os, final String xmpXml) throws ImagingException, IOException {
final JFIFPieces jfifPieces = analyzeJfif(byteSource);
List<JFIFPiece> pieces = jfifPieces.pieces;
pieces = removeXmpSegments(pieces);
Expand All @@ -146,11 +144,10 @@ public void updateXmpXml(final ByteSource byteSource, final OutputStream os, fin
* @param src Image file.
* @param os OutputStream to write the image to.
* @param xmpXml String containing XMP XML.
* @throws ImagingException if it fails to read the JFIF segments
* @throws ImagingException if it fails to read or write the JFIF segments
* @throws IOException if it fails to read or write the data from the segments
* @throws ImagingException if it fails to write the JFIF segments
*/
public void updateXmpXml(final File src, final OutputStream os, final String xmpXml) throws ImagingException, IOException, ImagingException {
public void updateXmpXml(final File src, final OutputStream os, final String xmpXml) throws ImagingException, IOException {
final ByteSource byteSource = ByteSource.file(src);
updateXmpXml(byteSource, os, xmpXml);
}
Expand All @@ -161,11 +158,10 @@ public void updateXmpXml(final File src, final OutputStream os, final String xmp
* @param src InputStream containing JPEG image data.
* @param os OutputStream to write the image to.
* @param xmpXml String containing XMP XML.
* @throws ImagingException if it fails to read the JFIF segments
* @throws ImagingException if it fails to read or write the JFIF segments
* @throws IOException if it fails to read or write the data from the segments
* @throws ImagingException if it fails to write the JFIF segments
*/
public void updateXmpXml(final InputStream src, final OutputStream os, final String xmpXml) throws ImagingException, IOException, ImagingException {
public void updateXmpXml(final InputStream src, final OutputStream os, final String xmpXml) throws ImagingException, IOException {
final ByteSource byteSource = ByteSource.inputStream(src, null);
updateXmpXml(byteSource, os, xmpXml);
}
Expand Down