copyright messages updated in all java filees.
[utils] / system / spring / src / main / java / org / wamblee / system / spring / StringResource.java
index 3f9a7919aeaadf6135d148374669b62dcfa5132c..5f2597c1642a4aebf0fea08138592ee5e72f5ffe 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2007 the original author or authors.
+ * Copyright 2005-2010 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.
  */ 
 package org.wamblee.system.spring;
 
+import org.springframework.core.io.Resource;
+
 import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
-import java.net.URL;
 
-import org.springframework.core.io.Resource;
+import java.net.URL;
 
+/**
+ * 
+ * @author $author$
+ * @version $Revision$
+ */
 class StringResource implements Resource {
-       
-       private String _value; 
-       
-       public StringResource(String aValue) { 
-               _value = aValue; 
-       }
+    private String _value;
 
-       @Override
-       public Resource createRelative(String aRelativePath) throws IOException {
-               throw new IOException("No relative resource possible");
-       }
+    /**
+     * Creates a new StringResource object.
+     * 
+     */
+    public StringResource(String aValue) {
+        _value = aValue;
+    }
 
-       @Override
-       public boolean exists() {
-               return false;
-       }
+    @Override
+    public Resource createRelative(String aRelativePath) throws IOException {
+        throw new IOException("No relative resource possible");
+    }
 
-       @Override
-       public String getDescription() {
-               return "Properties of a spring component"; 
-       }
+    @Override
+    public boolean exists() {
+        return false;
+    }
 
-       @Override
-       public File getFile() throws IOException {
-               throw new IOException();
-       }
+    @Override
+    public String getDescription() {
+        return "Properties of a spring component";
+    }
 
-       @Override
-       public String getFilename() {
-               return "springcomponent.properties";
-       }
+    @Override
+    public File getFile() throws IOException {
+        throw new IOException();
+    }
 
-       @Override
-       public URL getURL() throws IOException {
-               throw new IOException();
-       }
+    @Override
+    public String getFilename() {
+        return "springcomponent.properties";
+    }
 
-       @Override
-       public boolean isOpen() {
-               return false;
-       }
+    @Override
+    public URL getURL() throws IOException {
+        throw new IOException();
+    }
 
-       @Override
-       public InputStream getInputStream() throws IOException {
-               return new ByteArrayInputStream(_value.getBytes());
-       }
+    @Override
+    public boolean isOpen() {
+        return false;
+    }
 
+    @Override
+    public InputStream getInputStream() throws IOException {
+        return new ByteArrayInputStream(_value.getBytes());
+    }
 }