public interface DocumentMarshaller
Document
which currently resides in memory
into an OutputStream
for transfer or storage. DocumentMarshallers are, in general,
format-agnostic, i.e. they are able to marshal and unmarshal a Document irrespective of what file
format(s) the pages of the document were loaded from. There are, however, some page segment and
document implementations which can not be marshaled, such as sparse documents, lazy page or other
special-purpose page segments.
DocumentMarshallers shall try to preserve as much information as possible in the process, e.g.:
SerializationDocumentMarshaller
etc.Modifier and Type | Method and Description |
---|---|
MarshallingControls |
getMarshallingControls() |
String |
getUnmarshallerClassName()
Return the name of the corresponding unmarshaller class which is able to read the byte stream
marshalled by this marshaller.
|
void |
marshal(Document document,
List<Page> pageSelection,
OutputStream os)
Marshal the given document consisting of the selected pages into the given output stream.
|
void marshal(Document document, List<Page> pageSelection, OutputStream os) throws IOException
document
- the document to marshal. Only user properties and meta-data will be usedpageSelection
- the pages to marshal.os
- the output stream into which data will be written.IOException
String getUnmarshallerClassName()
MarshallingControls getMarshallingControls()
Copyright © 2024 levigo holding gmbh. All rights reserved.