|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.zfqjava.swing.ModelIO
ModelIO
provides model input and export operation.
Method Summary | |
static javax.swing.table.TableModel |
readTableModel(java.io.File file,
java.lang.String formatName,
java.util.Map map)
Returns a TableModel . |
static javax.swing.table.TableModel |
readTableModel(java.io.InputStream input,
java.lang.String formatName,
java.util.Map map)
Returns a TableModel . |
static javax.swing.table.TableModel |
readTableModel(java.io.Reader reader,
java.lang.String formatName,
java.util.Map map)
Returns a TableModel . |
static javax.swing.table.TableModel |
readTableModel(java.net.URL url,
java.lang.String formatName,
java.util.Map map)
Returns a TableModel . |
static void |
writeTableModel(javax.swing.table.TableModel model,
java.lang.String formatName,
java.util.Map map,
java.io.File file)
Writes a TableModel use the formatName and to the
file object. |
static void |
writeTableModel(javax.swing.table.TableModel model,
java.lang.String formatName,
java.util.Map map,
java.io.OutputStream output)
Writes a TableModel use the formatName and to the
output stream. |
static void |
writeTableModel(javax.swing.table.TableModel model,
java.lang.String formatName,
java.util.Map map,
java.io.Writer writer)
Writes a TableModel use the formatName and to the
writer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static javax.swing.table.TableModel readTableModel(java.io.InputStream input, java.lang.String formatName, java.util.Map map) throws java.io.IOException
TableModel
.input
- an InputStream
to read fromformatName
- the formant namemap
- the properties to read modelTableModel
or null
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if input
or
formatName
is null
writeTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.OutputStream)
public static javax.swing.table.TableModel readTableModel(java.io.Reader reader, java.lang.String formatName, java.util.Map map) throws java.io.IOException
TableModel
.reader
- an Reader
to read fromformatName
- the formant namemap
- the properties to read modelTableModel
or null
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if input
or
formatName
is null
writeTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.OutputStream)
public static javax.swing.table.TableModel readTableModel(java.io.File file, java.lang.String formatName, java.util.Map map) throws java.io.IOException
TableModel
.file
- an File to read fromformatName
- the formant namemap
- the properties to read modelTableModel
or null
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if input
or
formatName
is null
writeTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.OutputStream)
public static javax.swing.table.TableModel readTableModel(java.net.URL url, java.lang.String formatName, java.util.Map map) throws java.io.IOException
TableModel
.url
- an URL to read fromformatName
- the formant namemap
- the properties to read modelTableModel
or null
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if input
or
formatName
is null
writeTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.OutputStream)
public static void writeTableModel(javax.swing.table.TableModel model, java.lang.String formatName, java.util.Map map, java.io.OutputStream output) throws java.io.IOException
TableModel
use the formatName
and to the
output
stream.model
- the TableModel
formatName
- the formant namemap
- the properties to read modeloutput
- the OutputStream
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if any parameter expect map
is
null
.readTableModel(java.io.InputStream, java.lang.String, java.util.Map)
public static void writeTableModel(javax.swing.table.TableModel model, java.lang.String formatName, java.util.Map map, java.io.Writer writer) throws java.io.IOException
TableModel
use the formatName
and to the
writer
.model
- the TableModel
formatName
- the formant namemap
- the properties to read modelwriter
- the Writer
java.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if any parameter expect map
is
null
.readTableModel(java.io.InputStream, java.lang.String, java.util.Map)
public static void writeTableModel(javax.swing.table.TableModel model, java.lang.String formatName, java.util.Map map, java.io.File file) throws java.io.IOException
TableModel
use the formatName
and to the
file
object.model
- the TableModel
formatName
- the formant namemap
- the properties to read modelfile
- the File objectjava.io.IOException
- if an error occurs during readingjava.lang.IllegalArgumentException
- if any parameter expect map
is
null
.readTableModel(java.io.InputStream, java.lang.String, java.util.Map)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |