Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/*----------------------------------------------------------------------------- 
 * GDSC SMLM Software
 * 
 * Copyright (C) 2013 Alex Herbert
 * Genome Damage and Stability Centre
 * University of Sussex, UK
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *---------------------------------------------------------------------------*/

public class Main {
    /**
     * Convert double quotes to single quotes.
     * <p>
     * This method is a simple replace function call. It does not check if the xml contains a mixture of single and
     * double quotes. In that instance the returned XML will break.
     *
     * @param xml
     *            the xml
     * @return the converted xml
     */
    public static String convertQuotes(String xml) {
        return xml.replace('"', '\'');
    }
}