01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.dp;
06:
07: import java.util.Map;
08: import java.io.InputStream;
09:
10: import com.sun.portal.desktop.context.DPContext;
11: import com.sun.portal.desktop.context.DPUserContext;
12:
13: public interface DPFactory {
14: public DPRoot createRoot(DPContext dpc, DPUserContext dpuc,
15: Map dpRoots, boolean merge) throws DPException;
16:
17: /**
18: * This method can be called only if the encoding in the xml header is "UTF-8"
19: *
20: * @param dpc The DPContext
21: * @param doc String containing xml data.
22: */
23: public DPRoot createRoot(DPContext dpc, String doc)
24: throws DPException;
25:
26: public DPRoot createRoot(DPContext dpc) throws DPException;
27:
28: public DPRoot createRoot(DPContext dpc, InputStream xmlByteStream)
29: throws DPException;
30: }
|