|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - public interface ImageWriter<T extends AbstractPdfToImageParameters>
Interface for a writer capable of writing RenderedImage. A writer implementation is a statefull component which may or may not support write of multiple images on a
single image file. The writer has a lifecycle where a destination is first open, images written and the destination is closed. A writer is Closeable and once closed it
should not be reused, it's behavior is unpredictable once it's closed.
The writer is meant to be used in the context of a Sejda task and its lifecycle methods have a task parameter instance as parameter to allow the writer to perform adjustments depending on the parameters specified.
| Nested Class Summary | |
|---|---|
static interface |
ImageWriter.ImageWriterBuilder<T extends AbstractPdfToImageParameters>
Builder interface for an ImageWriter. |
| Method Summary | |
|---|---|
void |
closeDestination()
Close the previously opened destination. |
void |
openWriteDestination(File destination,
T params)
Open the provided destination where image/s will be written to. |
void |
openWriteDestination(OutputStream destination,
T params)
Open the provided destination where image/s will be written to. |
boolean |
supportMultiImage()
|
void |
write(RenderedImage image,
T params)
Writes the given image to the previously opened destination. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
void openWriteDestination(OutputStream destination,
T params)
throws TaskIOException
write(RenderedImage, AbstractPdfToImageParameters) in order to be
able to write images.
destination - stream where the image/s will be written.params - task parameter instance.
TaskIOException
void openWriteDestination(File destination,
T params)
throws TaskIOException
write(RenderedImage, AbstractPdfToImageParameters) in order to be
able to write images.
destination - file where the image/s will be written.params - task parameter instance.
TaskIOException
void write(RenderedImage image,
T params)
throws TaskIOException
image - image to write.params - task parameter instance.
TaskIOException
void closeDestination()
throws TaskIOException
TaskIOExceptionboolean supportMultiImage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||