/*
 * Created on Aug 31, 2005
 * 
 * $Log$
 * Revision 1.1  2005/09/21 22:00:45  dsowen
 * Split out the access stuff into accesslib.
 * New Creator interface off-loads object creation to user.
 *
 */
package ws.fugue88.jpath;

import java.text.ParseException;

/**
 * @author dsowen
 */
public abstract class PathParser {

	public static String quote(final String s)
	{
		return s.replaceAll("'", "\\\\'");
	}

	public static String unquote(final String s)
	{
		return s.replaceAll("\\\\'", "'");
	}

	public abstract Path parse(final String path) throws ParseException;
}