/*** 导入文件
*
*@throwsParserException
*@throwsIOException*/@Testpublic void importFile() throwsIOException, ParserException {
FileInputStream fis= new FileInputStream("D://工作台//[email protected]");
CalendarBuilder build= newCalendarBuilder();
Calendar calendar=build.build(fis);for (Iterator i =calendar.getComponents(Component.VEVENT).iterator(); i.hasNext();) {
VEvent event=(VEvent) i.next();//开始时间
System.out.println("开始时间:" +event.getStartDate().getValue());//结束时间
System.out.println("结束时间:" +event.getEndDate().getValue());if (null != event.getProperty("DTSTART")) {
ParameterList parameters= event.getProperty("DTSTART").getParameters();if (null != parameters.getParameter("VALUE")) {
System.out.println(p