@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,7 @@ public class EncodedResource implements InputStreamSource {
|
||||
/**
|
||||
* Create a new {@code EncodedResource} for the given {@code Resource},
|
||||
* not specifying an explicit encoding or {@code Charset}.
|
||||
* @param resource the {@code Resource} to hold; never {@code null}
|
||||
* @param resource the {@code Resource} to hold (never {@code null})
|
||||
*/
|
||||
public EncodedResource(Resource resource) {
|
||||
this(resource, null, null);
|
||||
@@ -61,7 +61,7 @@ public class EncodedResource implements InputStreamSource {
|
||||
/**
|
||||
* Create a new {@code EncodedResource} for the given {@code Resource},
|
||||
* using the specified {@code encoding}.
|
||||
* @param resource the {@code Resource} to hold; never {@code null}
|
||||
* @param resource the {@code Resource} to hold (never {@code null})
|
||||
* @param encoding the encoding to use for reading from the resource
|
||||
*/
|
||||
public EncodedResource(Resource resource, String encoding) {
|
||||
@@ -71,7 +71,7 @@ public class EncodedResource implements InputStreamSource {
|
||||
/**
|
||||
* Create a new {@code EncodedResource} for the given {@code Resource},
|
||||
* using the specified {@code Charset}.
|
||||
* @param resource the {@code Resource} to hold; never {@code null}
|
||||
* @param resource the {@code Resource} to hold (never {@code null})
|
||||
* @param charset the {@code Charset} to use for reading from the resource
|
||||
*/
|
||||
public EncodedResource(Resource resource, Charset charset) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -183,7 +183,7 @@ public abstract class PropertiesLoaderUtils {
|
||||
ResourceUtils.useCachesIfNecessary(con);
|
||||
InputStream is = con.getInputStream();
|
||||
try {
|
||||
if (resourceName != null && resourceName.endsWith(XML_FILE_EXTENSION)) {
|
||||
if (resourceName.endsWith(XML_FILE_EXTENSION)) {
|
||||
props.loadFromXML(is);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user