public class DataBoxJarWriter
extends java.lang.Object
The directory structure of this jar file is defined as follow:
For example, if you have a DataBox contains a set of elements, three png images have been used by these elements, they are:
"/com/myoss/images/image1.png" "/com/myoss/images/image2.png" "/com/myoss/images/image3.png"In fact, no matter what's the original image urls are, the output jar file internal file structure will be as follow:
/data.xml /m1.png /m2.png /m3.pngNote: The file organized rule of the jar file may changed in the further releases of TWaver.
Constructor and Description |
---|
DataBoxJarWriter(java.io.OutputStream output)
Creates a jar file writer by specified output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
write(TDataBox box)
Writes all data and the used images from the data box
into the output stream which specified from the constructor.
|
public DataBoxJarWriter(java.io.OutputStream output)
DataBoxJarWriter.write
called.output
- OutputStream the output stream data will write into.public void write(TDataBox box) throws java.io.IOException
box
- TDataBox the data box contains the datajava.io.IOException
- if any I/O error occurCopyright © 2002 - 2010 Serva Software. All Rights Reserved.