public class FilePageStashWriter extends PageStashWriter
DocumentMarshaller
to convert the supplied
pages into a byte stream.CURRENT_FORMAT_VERSION, STASH_MIME_TYPE
Constructor and Description |
---|
FilePageStashWriter()
Create an instance that uses a default
DocumentMarshaller and default stash directory. |
FilePageStashWriter(DocumentMarshaller documentMarshaller)
Create an instance that uses the supplied
DocumentMarshaller and the default stash
directory. |
FilePageStashWriter(DocumentMarshaller documentMarshaller,
File stashDirectory)
Create an instance that uses the supplied
DocumentMarshaller and stash directory. |
FilePageStashWriter(File stashDirectory)
Create an instance that uses a default
DocumentMarshaller and the given stash directory. |
Modifier and Type | Method and Description |
---|---|
static File |
getDefaultStashDirectory() |
File |
getStashDirectory() |
PageStash |
writeStash(Document document,
List<Page> pages)
Write the given pages belonging to the given document as a PageStash.
|
PageStash |
writeStash(Document document,
List<Page> pages,
File stashDir)
Write the given pages belonging to the given document as a PageStash.
|
writeStash
public FilePageStashWriter()
DocumentMarshaller
and default stash directory.public FilePageStashWriter(File stashDirectory)
DocumentMarshaller
and the given stash directory.stashDirectory
- storage location for stash filespublic FilePageStashWriter(DocumentMarshaller documentMarshaller)
DocumentMarshaller
and the default stash
directory.documentMarshaller
- creates the data to be stashedpublic FilePageStashWriter(DocumentMarshaller documentMarshaller, File stashDirectory)
DocumentMarshaller
and stash directory.documentMarshaller
- creates the data to be stashedstashDirectory
- storage location for stash filespublic static File getDefaultStashDirectory()
public File getStashDirectory()
public PageStash writeStash(Document document, List<Page> pages) throws IOException
writeStash
in class PageStashWriter
document
- the document to which the pages belongpages
- the selected pagesIOException
- in case of problems during stash writingpublic PageStash writeStash(Document document, List<Page> pages, File stashDir) throws IOException
document
- the document to which the pages belong.pages
- the selected pagesIOException
- in case of problems during stash writingCopyright © 2024 levigo holding gmbh. All rights reserved.