| Diff.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
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 }