git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'edcd53bbbba9f94e21f43fd03d3a2febcc2b1564'
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
supported
/
BasicSupportImages.java
diff --git
a/src/be/nikiroo/fanfix/supported/BasicSupportImages.java
b/src/be/nikiroo/fanfix/supported/BasicSupportImages.java
index 85b79c754ec692f6b0a58c8039051c98c243ddb9..69a7c86720002b18c36bd2a4a79ee72353984429 100644
(file)
--- a/
src/be/nikiroo/fanfix/supported/BasicSupportImages.java
+++ b/
src/be/nikiroo/fanfix/supported/BasicSupportImages.java
@@
-9,6
+9,12
@@
import java.net.URL;
import be.nikiroo.fanfix.Instance;
import be.nikiroo.utils.Image;
import be.nikiroo.fanfix.Instance;
import be.nikiroo.utils.Image;
+/**
+ * Helper class for {@link BasicSupport}, mostly dedicated to images for
+ * the classes that implement {@link BasicSupport}.
+ *
+ * @author niki
+ */
public class BasicSupportImages {
/**
* Check if the given resource can be a local image or a remote image, then
public class BasicSupportImages {
/**
* Check if the given resource can be a local image or a remote image, then
@@
-22,7
+28,7
@@
public class BasicSupportImages {
* @return the image if found, or NULL
*
*/
* @return the image if found, or NULL
*
*/
-
stat
ic Image getImage(BasicSupport support, File dir, String line) {
+
publ
ic Image getImage(BasicSupport support, File dir, String line) {
URL url = getImageUrl(support, dir, line);
if (url != null) {
if ("file".equals(url.getProtocol())) {
URL url = getImageUrl(support, dir, line);
if (url != null) {
if ("file".equals(url.getProtocol())) {
@@
-60,7
+66,7
@@
public class BasicSupportImages {
* @return the image URL if found, or NULL
*
*/
* @return the image URL if found, or NULL
*
*/
-
stat
ic URL getImageUrl(BasicSupport support, File dir, String line) {
+
publ
ic URL getImageUrl(BasicSupport support, File dir, String line) {
URL url = null;
if (line != null) {
URL url = null;
if (line != null) {
@@
-151,7
+157,7
@@
public class BasicSupportImages {
*
* @return the extensions
*/
*
* @return the extensions
*/
-
stat
ic String[] getImageExt(boolean emptyAllowed) {
+
publ
ic String[] getImageExt(boolean emptyAllowed) {
if (emptyAllowed) {
return new String[] { "", ".png", ".jpg", ".jpeg", ".gif", ".bmp" };
}
if (emptyAllowed) {
return new String[] { "", ".png", ".jpg", ".jpeg", ".gif", ".bmp" };
}