|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xwpf.converter.core.openxmlformats.AbstractOpenXMLFormatsPartProvider org.apache.poi.xwpf.converter.core.openxmlformats.ZipArchive
public class ZipArchive
ZipArchive
is used to load zipped XML document archive (docx, odt...) ZipArchive
cache each entry zip
to transform content stream with IXDocPreprocessor
and ITemplateEngine
.
Constructor Summary | |
---|---|
ZipArchive()
|
|
ZipArchive(boolean trackLastModified)
|
Method Summary | |
---|---|
ZipArchive |
createCopy()
Create a copy of the ZipArchive . |
void |
dispose()
|
InputStream |
getEntryInputStream(String entryName)
Returns an InputStream from the cache entries of the given entry. |
Set<String> |
getEntryNames()
Returns the entry names of the XML document archive by using cache entries. |
Set<String> |
getEntryNames(String wildcard)
|
OutputStream |
getEntryOutputStream(String entryName)
Returns an OutputStream from the cache entries for writing the content of the given entry. |
long |
getLastModifiedEntry(String entryName)
|
boolean |
hasEntry(String entryName)
Returns true if ZipArchive contains an entry with the given name. |
static ZipArchive |
readZip(InputStream sourceStream)
Read zip from input stream and returns an instance of ZipArchive which cache each entry from the zip into
a Map. |
static void |
setEntry(ZipArchive archive,
String entryName,
InputStream input)
Set the given input stream in the given entry of the document archive. |
static void |
writeEntry(ZipArchive archive,
String entryName,
OutputStream outputStream)
Write the given entry from the document archive in the given output stream. |
static void |
writeZip(ZipArchive archive,
OutputStream outputStream)
Write XML document archive in the given output stream. |
Methods inherited from class org.apache.poi.xwpf.converter.core.openxmlformats.AbstractOpenXMLFormatsPartProvider |
---|
getDocument, getFontsDocument, getFtrDocumentByPartId, getHdrDocumentByPartId, getInputStreamByRelId, getSettings, getStyle, getThemeDocuments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipArchive()
public ZipArchive(boolean trackLastModified)
Method Detail |
---|
public Set<String> getEntryNames()
public Set<String> getEntryNames(String wildcard)
public InputStream getEntryInputStream(String entryName)
InputStream
from the cache entries of the given entry.
getEntryInputStream
in class AbstractOpenXMLFormatsPartProvider
entryName
-
public OutputStream getEntryOutputStream(String entryName)
OutputStream
from the cache entries for writing the content of the given entry.
entryName
-
OutputStream
public ZipArchive createCopy()
ZipArchive
.
public boolean hasEntry(String entryName)
ZipArchive
contains an entry with the given name.
entryName
-
public static ZipArchive readZip(InputStream sourceStream) throws IOException
ZipArchive
which cache each entry from the zip into
a Map.
sourceStream
- stream of odt, docx file.
IOException
public static void setEntry(ZipArchive archive, String entryName, InputStream input) throws IOException
archive
- inputStream
-
IOException
public static void writeEntry(ZipArchive archive, String entryName, OutputStream outputStream) throws IOException
archive
- outputStream
-
IOException
public static void writeZip(ZipArchive archive, OutputStream outputStream) throws IOException
archive
- outputStream
-
IOException
public long getLastModifiedEntry(String entryName)
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |