mirror of https://github.com/apache/poi.git
fixed non-ASCII symbols to keep javac quiet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@818752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d325146381
commit
49d360bcd8
|
@ -32,7 +32,9 @@
|
|||
</developers>
|
||||
|
||||
<changes>
|
||||
<release version="3.5-beta7" date="2009-??-??">
|
||||
<release version="3.6-beta1" date="2009-??-??">
|
||||
</release>
|
||||
<release version="3.5-FINAL" date="2009-09-28">
|
||||
<action dev="POI-DEVELOPERS" type="fix">47747 - fixed logic for locating shared formula records</action>
|
||||
<action dev="POI-DEVELOPERS" type="add">47809 - Improved work with user-defined functions</action>
|
||||
<action dev="POI-DEVELOPERS" type="fix">47581 - fixed XSSFSheet.setColumnWidth to produce XML compatible with Mac Excel 2008</action>
|
||||
|
|
|
@ -59,7 +59,7 @@ public class EmeddedObjects {
|
|||
}
|
||||
} else {
|
||||
// There is no DirectoryEntry
|
||||
// Recover the object’s data from the HSSFObjectData instance.
|
||||
// Recover the object's data from the HSSFObjectData instance.
|
||||
byte[] objectData = obj.getObjectData();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,27 +35,27 @@ public class EmbeddedObjects {
|
|||
XSSFWorkbook workbook = new XSSFWorkbook(args[0]);
|
||||
for (PackagePart pPart : workbook.getAllEmbedds()) {
|
||||
String contentType = pPart.getContentType();
|
||||
// Excel Workbook – either binary or OpenXML
|
||||
// Excel Workbook - either binary or OpenXML
|
||||
if (contentType.equals("application/vnd.ms-excel")) {
|
||||
HSSFWorkbook embeddedWorkbook = new HSSFWorkbook(pPart.getInputStream());
|
||||
}
|
||||
// Excel Workbook – OpenXML file format
|
||||
// Excel Workbook - OpenXML file format
|
||||
else if (contentType.equals("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")) {
|
||||
XSSFWorkbook embeddedWorkbook = new XSSFWorkbook(pPart.getInputStream());
|
||||
}
|
||||
// Word Document – binary (OLE2CDF) file format
|
||||
// Word Document - binary (OLE2CDF) file format
|
||||
else if (contentType.equals("application/msword")) {
|
||||
HWPFDocument document = new HWPFDocument(pPart.getInputStream());
|
||||
}
|
||||
// Word Document – OpenXML file format
|
||||
// Word Document - OpenXML file format
|
||||
else if (contentType.equals("application/vnd.openxmlformats-officedocument.wordprocessingml.document")) {
|
||||
XWPFDocument document = new XWPFDocument(pPart.getInputStream());
|
||||
}
|
||||
// PowerPoint Document – binary file format
|
||||
// PowerPoint Document - binary file format
|
||||
else if (contentType.equals("application/vnd.ms-powerpoint")) {
|
||||
HSLFSlideShow slideShow = new HSLFSlideShow(pPart.getInputStream());
|
||||
}
|
||||
// PowerPoint Document – OpenXML file format
|
||||
// PowerPoint Document - OpenXML file format
|
||||
else if (contentType.equals("application/vnd.openxmlformats-officedocument.presentationml.presentation")) {
|
||||
OPCPackage docPackage = OPCPackage.open(pPart.getInputStream());
|
||||
XSLFSlideShow slideShow = new XSLFSlideShow(docPackage);
|
||||
|
|
Loading…
Reference in New Issue