@Test public void testFormat() throws Exception { Map<String, Object> markerValues = new HashMap<String, Object>(); markerValues.put("name", "小明"); markerValues.put("age", "30岁"); XWPFDocument document = DocxUtils.format(getDocumentInputStream(), markerValues); Assert.assertNotNull(document); }
public static XWPFDocument format(InputStream is, Map<String, Object> markerValues) { XWPFDocument document = loadDocument(is); return format(document, markerValues); }
DocxUtils { public static XWPFDocument format(InputStream is, Map<String, Object> markerValues) { XWPFDocument document = loadDocument(is); return format(document, markerValues); } }
DocxUtils { public static XWPFDocument format(InputStream is, Map<String, Object> markerValues) { XWPFDocument document = loadDocument(is); return format(document, markerValues); } private  DocxUtils(); }
DocxUtils { public static XWPFDocument format(InputStream is, Map<String, Object> markerValues) { XWPFDocument document = loadDocument(is); return format(document, markerValues); } private  DocxUtils(); static String loadText(InputStream is); static String loadText(XWPFDocument document); static List<String> findMarkers(InputStream is); static XWPFDocument format(InputStream is,
                                    Map<String, Object> markerValues); static XWPFDocument format(XWPFDocument document,
                                    Map<String, Object> markerValues); static XWPFDocument loadDocument(InputStream is); static void formatParagraph(XWPFParagraph paragraph,
                                     Map<String, Object> markerValues, Pattern p); }
DocxUtils { public static XWPFDocument format(InputStream is, Map<String, Object> markerValues) { XWPFDocument document = loadDocument(is); return format(document, markerValues); } private  DocxUtils(); static String loadText(InputStream is); static String loadText(XWPFDocument document); static List<String> findMarkers(InputStream is); static XWPFDocument format(InputStream is,
                                    Map<String, Object> markerValues); static XWPFDocument format(XWPFDocument document,
                                    Map<String, Object> markerValues); static XWPFDocument loadDocument(InputStream is); static void formatParagraph(XWPFParagraph paragraph,
                                     Map<String, Object> markerValues, Pattern p);  }