public class DataBoxJarReader
extends java.lang.Object
DataBoxJarWriter
. The jar file defines a set of
data and its used images. The jar file may come from a local file,
http, ftp or any other remote URL connections.
Please see class DataBoxJarWriter
for more details
about the internal structure of the jar file.
Constructor and Description |
---|
DataBoxJarReader(java.net.JarURLConnection connection)
Create a jar file reader from the given jar url connection.
|
Modifier and Type | Method and Description |
---|---|
void |
read(TDataBox box)
Read data from the jar file into the specified data box.
|
void |
read(TDataBox box,
Element parentOfRootElement)
Read data from the jar file into the specified data box.
|
public DataBoxJarReader(java.net.JarURLConnection connection)
connection
- JarURLConnection the jar file source connection.public void read(TDataBox box) throws java.io.IOException
box
- TDataBox all elements will add into this data boxjava.io.IOException
- if an I/O error occur or
an illegal format file foundpublic void read(TDataBox box, Element parentOfRootElement) throws java.io.IOException
box
- TDataBox all elements will add into this data boxjava.io.IOException
- if an I/O error occur or
an illegal format file foundCopyright © 2002 - 2010 Serva Software. All Rights Reserved.