source: trunk/src/ws/fugue88/jpath/PathParser.java

Last change on this file was 6, checked in by dsowen, 21 years ago

Split out the access stuff into accesslib.
New Creator interface off-loads object creation to user.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 573 bytes
Line 
1/*
2 * Created on Aug 31, 2005
3 *
4 * $Log$
5 * Revision 1.1  2005/09/21 22:00:45  dsowen
6 * Split out the access stuff into accesslib.
7 * New Creator interface off-loads object creation to user.
8 *
9 */
10package ws.fugue88.jpath;
11
12import java.text.ParseException;
13
14/**
15 * @author dsowen
16 */
17public abstract class PathParser {
18
19        public static String quote(final String s)
20        {
21                return s.replaceAll("'", "\\\\'");
22        }
23
24        public static String unquote(final String s)
25        {
26                return s.replaceAll("\\\\'", "'");
27        }
28
29        public abstract Path parse(final String path) throws ParseException;
30}
Note: See TracBrowser for help on using the repository browser.