⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directoryentry.java

📁 java 报表 to office文档: 本包由java语言开发
💻 JAVA
字号:
/* ====================================================================   Copyright 2002-2004   Apache Software Foundation   Licensed 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.poifs.filesystem;import java.io.*;import java.util.*;import org.apache.poi.hpsf.ClassID;/** * This interface defines methods specific to Directory objects * managed by a Filesystem instance. * * @author Marc Johnson (mjohnson at apache dot org) */public interface DirectoryEntry    extends Entry{    /**     * get an iterator of the Entry instances contained directly in     * this instance (in other words, children only; no grandchildren     * etc.)     *     * @return iterator; never null, but hasNext() may return false     *         immediately (i.e., this DirectoryEntry is empty). All     *         objects retrieved by next() are guaranteed to be     *         implementations of Entry.     */    public Iterator getEntries();    /**     * is this DirectoryEntry empty?     *     * @return true if this instance contains no Entry instances     */    public boolean isEmpty();    /**     * find out how many Entry instances are contained directly within     * this DirectoryEntry     *     * @return number of immediately (no grandchildren etc.) contained     *         Entry instances     */    public int getEntryCount();    /**     * get a specified Entry by name     *     * @param name the name of the Entry to obtain.     *     * @return the specified Entry, if it is directly contained in     *         this DirectoryEntry     *     * @exception FileNotFoundException if no Entry with the specified     *            name exists in this DirectoryEntry     */    public Entry getEntry(final String name)        throws FileNotFoundException;    /**     * create a new DocumentEntry     *     * @param name the name of the new DocumentEntry     * @param stream the InputStream from which to create the new     *               DocumentEntry     *     * @return the new DocumentEntry     *     * @exception IOException     */    public DocumentEntry createDocument(final String name,                                        final InputStream stream)        throws IOException;    /**     * create a new DocumentEntry; the data will be provided later     *     * @param name the name of the new DocumentEntry     * @param size the size of the new DocumentEntry     * @param writer the writer of the new DocumentEntry     *     * @return the new DocumentEntry     *     * @exception IOException     */    public DocumentEntry createDocument(final String name, final int size,                                        final POIFSWriterListener writer)        throws IOException;    /**     * create a new DirectoryEntry     *     * @param name the name of the new DirectoryEntry     *     * @return the new DirectoryEntry     *     * @exception IOException     */    public DirectoryEntry createDirectory(final String name)        throws IOException;    /**     * Gets the storage clsid of the directory entry     *     * @return storage Class ID     */    public ClassID getStorageClsid();    /**     * Sets the storage clsid for the directory entry     *     * @param clsidStorage storage Class ID     */    public void setStorageClsid(ClassID clsidStorage);}   // end public interface DirectoryEntry

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -