133134135136137138139140
while(relIter.hasNext()) { PackageRelationship rel = relIter.next(); hyperlinks.add(new XWPFHyperlink(rel.getId(), rel.getTargetURI().toString())); } } catch (InvalidFormatException e){ throw new POIXMLException(e); } }
154155156157158159160161
pkg.getPackageProperties().setCreatorProperty("Apache POI"); return pkg; } catch (Exception e){ throw new POIXMLException(e); } }
214215216217218219220221222223
case STVerticalAlignRun.INT_SUBSCRIPT: return Font.SS_SUB; case STVerticalAlignRun.INT_SUPERSCRIPT: return Font.SS_SUPER; default: throw new POIXMLException("Wrong offset value " + val); } } else return Font.SS_NONE; }
285286287288289290291292
break; case Font.DEFAULT_CHARSET: charsetProperty.setVal(FontCharset.DEFAULT.getValue()); break; default: throw new POIXMLException("Attention: an attempt to set a type of unknow charset and charset"); } }
142143144145146147148149
@Override protected void onDocumentRead() { try { read(getPackagePart().getInputStream()); } catch (IOException e){ throw new POIXMLException(e); } }
150151152153154155156157158159160
protected void read(InputStream is) throws IOException { try { worksheet = WorksheetDocument.Factory.parse(is).getWorksheet(); } catch (XmlException e){ throw new POIXMLException(e); } initRows(worksheet); columnHelper = new ColumnHelper(worksheet);
206207208209210211212213
} hyperlinks.add( new XSSFHyperlink(hyperlink, hyperRel) ); } } catch (InvalidFormatException e){ throw new POIXMLException(e); } }
150151152153154155156157
} } initHyperlinks(); } catch (XmlException e) { throw new POIXMLException(e); } }
165166167168169170171172
205206207208209210211212
pkg.getPackageProperties().setCreatorProperty(DOCUMENT_CREATOR); return pkg; } catch (Exception e){ throw new POIXMLException(e); } }