/** * @throws IOException * @see org.apache.wicket.resource.IPropertiesLoader#loadJavaProperties(java.io.InputStream) */ @Override public java.util.Properties loadJavaProperties(final InputStream in) throws IOException { java.util.Properties properties = new java.util.Properties(); Streams.loadFromXml(properties, in); return properties; }
/** * @throws IOException * @see org.apache.wicket.resource.IPropertiesLoader#loadJavaProperties(java.io.InputStream) */ @Override public java.util.Properties loadJavaProperties(final InputStream in) throws IOException { java.util.Properties properties = new java.util.Properties(); Streams.loadFromXml(properties, in); return properties; }
/** * * @param in * @return java.util.Properties * @throws IOException */ @Override protected java.util.Properties loadProperties(BufferedInputStream in) throws IOException { java.util.Properties properties = new java.util.Properties(); Streams.loadFromXml(properties, in); return properties; } }
if (loadAsXml) Streams.loadFromXml(properties, in);