src/share/classes/javax/imageio/spi/ImageWriterSpi.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 236,246 ****
new Class<?>[] { ImageOutputStream.class } :
outputTypes.clone();
// If length == 0, leave it null
if (readerSpiNames != null && readerSpiNames.length > 0) {
! this.readerSpiNames = (String[])readerSpiNames.clone();
}
}
/**
* Returns <code>true</code> if the format that this writer
--- 236,246 ----
new Class<?>[] { ImageOutputStream.class } :
outputTypes.clone();
// If length == 0, leave it null
if (readerSpiNames != null && readerSpiNames.length > 0) {
! this.readerSpiNames = readerSpiNames.clone();
}
}
/**
* Returns <code>true</code> if the format that this writer
*** 266,276 ****
*
* @return a non-<code>null</code> array of
* <code>Class</code>objects of length at least 1.
*/
public Class[] getOutputTypes() {
! return (Class[])outputTypes.clone();
}
/**
* Returns <code>true</code> if the <code>ImageWriter</code>
* implementation associated with this service provider is able to
--- 266,276 ----
*
* @return a non-<code>null</code> array of
* <code>Class</code>objects of length at least 1.
*/
public Class[] getOutputTypes() {
! return outputTypes.clone();
}
/**
* Returns <code>true</code> if the <code>ImageWriter</code>
* implementation associated with this service provider is able to
*** 433,440 ****
* @see javax.imageio.ImageIO#getImageReader(ImageWriter)
* @see ImageReaderSpi#getImageWriterSpiNames()
*/
public String[] getImageReaderSpiNames() {
return readerSpiNames == null ?
! null : (String[])readerSpiNames.clone();
}
}
--- 433,440 ----
* @see javax.imageio.ImageIO#getImageReader(ImageWriter)
* @see ImageReaderSpi#getImageWriterSpiNames()
*/
public String[] getImageReaderSpiNames() {
return readerSpiNames == null ?
! null : readerSpiNames.clone();
}
}