Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is poi-scratchpad-5.2.3.jar?
What Is poi-scratchpad-5.2.3.jar?
✍: FYIcenter.com
poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-scratchpad-5.2.3.jar provides support for older versions of Microsoft document files like Word 97, Excel 97, PowerPoint 97, etc.
poi-scratchpad-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-scratchpad-5.2.3.jar Target JDK version: 9 Dependency: poi.jar File name: poi-scratchpad.jar, poi-scratchpad-5.2.3.jar File size: 1897121 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-scratchpad-5.2.3.jar:
⏎ org/apache/poi/hsmf/datatypes/AttachmentChunks.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.hsmf.datatypes; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_CONTENT_ID; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_DATA; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_EXTENSION; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_FILENAME; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_LONG_FILENAME; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_MIME_TAG; import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_RENDERING; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.hsmf.MAPIMessage; /** * Collection of convenience chunks for standard parts of the MSG file * attachment. */ public class AttachmentChunks implements ChunkGroup { private static final Logger LOG = LogManager.getLogger(AttachmentChunks.class); public static final String PREFIX = "__attach_version1.0_#"; private ByteChunk attachData; private StringChunk attachExtension; private StringChunk attachFileName; private StringChunk attachLongFileName; private StringChunk attachMimeTag; private DirectoryChunk attachmentDirectory; private StringChunk attachContentId; /** * This is in WMF Format. You'll probably want to pass it to Apache Batik to * turn it into a SVG that you can then display. */ private ByteChunk attachRenderingWMF; /** * What the POIFS name of this attachment is. */ private final String poifsName; /** Holds all the chunks that were found. */ private final List<Chunk> allChunks = new ArrayList<>(); public AttachmentChunks(String poifsName) { this.poifsName = poifsName; } /** * Is this Attachment an embedded MAPI message? */ public boolean isEmbeddedMessage() { return (attachmentDirectory != null); } /** * Returns the embedded MAPI message, if the attachment is an embedded * message, or null otherwise */ public MAPIMessage getEmbeddedMessage() throws IOException { if (attachmentDirectory != null) { return attachmentDirectory.getAsEmbeddedMessage(); } return null; } /** * Returns the embedded object, if the attachment is an object based * embedding (image, document etc), or null if it's an embedded message */ public byte[] getEmbeddedAttachmentObject() { if (attachData != null) { return attachData.getValue(); } return null; } public Chunk[] getAll() { return allChunks.toArray(new Chunk[0]); } @Override public Chunk[] getChunks() { return getAll(); } public String getPOIFSName() { return poifsName; } /** * @return the ATTACH_DATA chunk */ public ByteChunk getAttachData() { return attachData; } /** * @return the attachment extension */ public StringChunk getAttachExtension() { return attachExtension; } /** * @return the attachment (short) filename */ public StringChunk getAttachFileName() { return attachFileName; } /** * @return the attachment (long) filename */ public StringChunk getAttachLongFileName() { return attachLongFileName; } /** * @return the attachment mimetag */ public StringChunk getAttachMimeTag() { return attachMimeTag; } /** * @return the attachment directory */ public DirectoryChunk getAttachmentDirectory() { return attachmentDirectory; } /** * @return the attachment preview bytes */ public ByteChunk getAttachRenderingWMF() { return attachRenderingWMF; } /** * @return the attachment content ID */ public StringChunk getAttachContentId() { return attachContentId; } /** * Called by the parser whenever a chunk is found. */ @Override public void record(Chunk chunk) { // TODO: add further members for other properties like: // - ATTACH_ADDITIONAL_INFO // - ATTACH_CONTENT_BASE // - ATTACH_CONTENT_LOCATION // - ATTACH_DISPOSITION // - ATTACH_ENCODING // - ATTACH_FLAGS // - ATTACH_LONG_PATHNAME // - ATTACH_SIZE final int chunkId = chunk.getChunkId(); if (chunkId == ATTACH_DATA.id) { if (chunk instanceof ByteChunk) { attachData = (ByteChunk) chunk; } else if (chunk instanceof DirectoryChunk) { attachmentDirectory = (DirectoryChunk) chunk; } else { LOG.atError().log("Unexpected data chunk of type {}", chunk.getEntryName()); } } else if (chunkId == ATTACH_EXTENSION.id) { attachExtension = (StringChunk) chunk; } else if (chunkId == ATTACH_FILENAME.id) { attachFileName = (StringChunk) chunk; } else if (chunkId == ATTACH_LONG_FILENAME.id) { attachLongFileName = (StringChunk) chunk; } else if (chunkId == ATTACH_MIME_TAG.id) { attachMimeTag = (StringChunk) chunk; } else if (chunkId == ATTACH_RENDERING.id) { attachRenderingWMF = (ByteChunk) chunk; } else if (chunkId == ATTACH_CONTENT_ID.id) { attachContentId = (StringChunk) chunk; } else { LOG.atWarn().log("Currently unsupported attachment chunk property will be ignored. {}", chunk.getEntryName()); } // And add to the main list allChunks.add(chunk); } /** * Used to flag that all the chunks of the attachment have now been located. */ @Override public void chunksComplete() { // Currently, we don't need to do anything special once // all the chunks have been located } /** * Orders by the attachment number. */ public static class AttachmentChunksSorter implements Comparator<AttachmentChunks>, Serializable { @Override public int compare(AttachmentChunks a, AttachmentChunks b) { return a.poifsName.compareTo(b.poifsName); } } }
⏎ org/apache/poi/hsmf/datatypes/AttachmentChunks.java
Or download all of them as a single archive file:
File name: poi-scratchpad-5.2.3-src.zip File size: 1238744 bytes Release date: 2022-09-09 Download
⇒ What Is poi-examples-5.2.3.jar?
⇐ What Is poi-excelant-5.2.3.jar?
2017-03-22, 33671👍, 0💬
Popular Posts:
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...