- All Known Implementing Classes:
BitmapExportOutputFormat,SimpleXmlWriter,XmlEncoderOutputFormat
public interface OutputFormat
OutputFormat.
- Author:
- Werner Randelshofer
-
Method Summary
Modifier and TypeMethodDescriptionImmutableMap<Key<?>, Object> voidsetOptions(ImmutableMap<Key<?>, Object> newValue) voidWrites a Drawing into an output stream.default voidWrites a Drawing into the resource identified by the given URI.default voidWrites the drawing to the specified file.
-
Method Details
-
setOptions
-
getOptions
ImmutableMap<Key<?>,Object> getOptions() -
write
Writes a Drawing into the resource identified by the given URI.- Parameters:
uri- The resource identifierdrawing- The drawing.workState- for progress monitoring and cancelling the operation- Throws:
IOException- if an IO error occurs
-
write
Writes the drawing to the specified file. This method ensures that all figures of the drawing are visible on the image.- Parameters:
file- the filedrawing- the drawingworkState- for progress monitoring and cancelling the operation- Throws:
IOException- if an IO error occurs
-
write
void write(OutputStream out, @Nullable URI documentHome, Drawing drawing, WorkState<Void> workState) throws IOException Writes a Drawing into an output stream.- Parameters:
out- The output stream.documentHome- Document home URI for creating relative URIs in the document if this URI is null, all URIs in the document will be absolutedrawing- The drawing.workState- for progress monitoring and cancelling the operation- Throws:
IOException- if an IO error occurs
-