@@ -0,0 +1,1616 @@
+/**%0A * Copyright %C2%A9 2011-2013 EMBL - European Bioinformatics Institute%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); %0A * you may not use this file except in compliance with the License.  %0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A%0Apackage uk.ac.ebi.phenotype.imaging.utils;%0A%0Aimport java.io.PrintWriter;%0A%0A/**%0A * Just a helper class to write solr fields in xml document for posting to solr to create index%0A * @Author jw12%0A */%0Apublic class CreateSolrIndexerUtil %7B%0A%0A%09private String nl;%0A%09public CreateSolrIndexerUtil()%7B%0A%09%09nl=System.getProperty(%22line.separator%22);%0A%09%7D%0A%09protected void createField(PrintWriter out, String name, String content)%7B%0A%09%09//only print if the content is not null%0A%09%09if(content!=null && !content.equals(%22%22) && !content.contains(%22%5Cu0000%22))%7B%0A                    content=content.replace(%22%3Ca href%22, %22%22);%0A                    content=content.replace(%22%3C/a%3E%22, %22%22);%0A                    content=content.replace(%22%3E%22,%22&gt;%22);%0A                    content=content.replace(%22%3C%22,%22&lt%22);%0A%09%09String line=%22%3Cfield name=%5C%22%22+name+%22%5C%22%3E%22+content+%22%3C/field%3E%22+nl;%0A%09%09line=line.replace(%22&%22, %22%22);%0A%09%09//System.out.println(%22.%22);%0A%09%09out.write(line);%0A%09%09%7D%0A%09%7D%0A%09/**%0A%09 * @return%0A%09 */%0A%09public String getLineSeperator() %7B%0A%09%09return nl;%0A%09%7D%0A%7D%0A

Change copyright in Apache 2 license to 2013 documented imaging java classes added