diff options
author | Javen O'Neal <onealj@apache.org> | 2016-07-17 08:45:55 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2016-07-17 08:45:55 +0000 |
commit | fe46099398636324c2fc79aea16bdd2469aacf20 (patch) | |
tree | 63c4346083697e57b950d74a96c1889ccf1ee200 | |
parent | c44b7ab7a27d2492c6cda00bc17bb8e372d287b0 (diff) | |
download | poi-fe46099398636324c2fc79aea16bdd2469aacf20.tar.gz poi-fe46099398636324c2fc79aea16bdd2469aacf20.zip |
whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753032 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/scratchpad/src/org/apache/poi/extractor/OLE2ScratchpadExtractorFactory.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scratchpad/src/org/apache/poi/extractor/OLE2ScratchpadExtractorFactory.java b/src/scratchpad/src/org/apache/poi/extractor/OLE2ScratchpadExtractorFactory.java index da0a82b8fe..115b74a39c 100644 --- a/src/scratchpad/src/org/apache/poi/extractor/OLE2ScratchpadExtractorFactory.java +++ b/src/scratchpad/src/org/apache/poi/extractor/OLE2ScratchpadExtractorFactory.java @@ -105,13 +105,13 @@ public class OLE2ScratchpadExtractorFactory { * {@link POITextExtractor} for each embedded file. */ public static void identifyEmbeddedResources(POIOLE2TextExtractor ext, List<Entry> dirs, List<InputStream> nonPOIFS) throws IOException { - // Find all the embedded directories + // Find all the embedded directories DirectoryEntry root = ext.getRoot(); - if(root == null) { + if (root == null) { throw new IllegalStateException("The extractor didn't know which POIFS it came from!"); } - if(ext instanceof WordExtractor) { + if (ext instanceof WordExtractor) { // These are in ObjectPool -> _... under the root try { DirectoryEntry op = (DirectoryEntry) @@ -129,14 +129,14 @@ public class OLE2ScratchpadExtractorFactory { //} else if(ext instanceof PowerPointExtractor) { // Tricky, not stored directly in poifs // TODO - } else if(ext instanceof OutlookTextExtactor) { + } else if (ext instanceof OutlookTextExtactor) { // Stored in the Attachment blocks MAPIMessage msg = ((OutlookTextExtactor)ext).getMAPIMessage(); - for(AttachmentChunks attachment : msg.getAttachmentFiles()) { - if(attachment.attachData != null) { + for (AttachmentChunks attachment : msg.getAttachmentFiles()) { + if (attachment.attachData != null) { byte[] data = attachment.attachData.getValue(); nonPOIFS.add( new ByteArrayInputStream(data) ); - } else if(attachment.attachmentDirectory != null) { + } else if (attachment.attachmentDirectory != null) { dirs.add(attachment.attachmentDirectory.getDirectory()); } } |