Class NativeFormat
java.lang.Object
com.codename1.art.NativeFormat
The
.cn1gfx container: a ZIP holding document.json and every raster as a PNG under
images/. It keeps everything an ArtDocument holds -- every node, paint, stroke, effect
parameter and note -- so a document saved and read back is the same document.-
Method Summary
Modifier and TypeMethodDescriptionstatic ArtDocumentread(InputStream in) Reads a document.static voidwrite(ArtDocument doc, OutputStream out) Writes a document.
-
Method Details
-
write
Writes a document.
Parameters
doc: the documentout: receives the file; not closed
- Throws:
IOException
-
read
Reads a document.
Parameters
in: the file; read to its end, not closed
- Throws:
IOException
-