| Diff.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 */
14
15 package com.liferay.portal.kernel.util;
16
17 import java.io.Reader;
18
19 import java.util.List;
20
21 /**
22 * <a href="Diff.java.html"><b><i>View Source</i></b></a>
23 *
24 * @author Bruno Farache
25 * @see com.liferay.portal.kernel.util.DiffUtil
26 */
27 public interface Diff {
28
29 public final String OPEN_INS = "<ins>";
30
31 public final String CLOSE_INS = "</ins>";
32
33 public final String OPEN_DEL = "<del>";
34
35 public final String CLOSE_DEL = "</del>";
36
37 public final String CONTEXT_LINE = "#context#line#";
38
39 public List<DiffResult>[] diff(Reader source, Reader target);
40
41 public List<DiffResult>[] diff(
42 Reader source, Reader target, String addedMarkerStart,
43 String addedMarkerEnd, String deletedMarkerStart,
44 String deletedMarkerEnd, int margin);
45
46 }