|
||||||||||
| 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.
| Field Summary | |
static java.lang.String |
DELIMITER_STRING
Key for the delimiter string. |
static java.lang.String |
ENABLE_LOOSE_FORMAT
Key for enable loose format. |
static java.lang.String |
QUOTE_CHAR
Key for the quote char. |
| 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 WorkBook |
readWorkBook(java.io.File file,
java.lang.String formatName,
java.util.Map map)
Returns a WorkBook. |
static WorkBook |
readWorkBook(java.io.InputStream input,
java.lang.String formatName,
java.util.Map map)
Returns a WorkBook. |
static WorkBook |
readWorkBook(java.net.URL url,
java.lang.String formatName,
java.util.Map map)
Returns a WorkBook. |
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. |
static void |
writeWorkBook(WorkBook book,
java.lang.String formatName,
java.util.Map map,
java.io.File file)
Writes a WorkBook use the formatName and to the
file object. |
static void |
writeWorkBook(WorkBook book,
java.lang.String formatName,
java.util.Map map,
java.io.OutputStream output)
Writes a WorkBook use the formatName and to the
output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DELIMITER_STRING
Type: java.lang.String
public static final java.lang.String QUOTE_CHAR
Type: java.lang.Character
public static final java.lang.String ENABLE_LOOSE_FORMAT
Type: java.lang.Boolean
| 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 nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteTableModel(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 nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteTableModel(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 nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteTableModel(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 nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteTableModel(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 TableModelformatName - the formant namemap - the properties to read modeloutput - the OutputStreamjava.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 TableModelformatName - the formant namemap - the properties to read modelwriter - the Writerjava.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 TableModelformatName - 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)
public static WorkBook readWorkBook(java.io.File file,
java.lang.String formatName,
java.util.Map map)
throws java.io.IOException
WorkBook.file - an File to read fromformatName - the formant namemap - the properties to read modelWorkBook or nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static WorkBook readWorkBook(java.net.URL url,
java.lang.String formatName,
java.util.Map map)
throws java.io.IOException
WorkBook.url - an URL to read fromformatName - the formant namemap - the properties to read modelWorkBook or nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static WorkBook readWorkBook(java.io.InputStream input,
java.lang.String formatName,
java.util.Map map)
throws java.io.IOException
WorkBook.input - an InputStream to read fromformatName - the formant namemap - the properties to read modelWorkBook or nulljava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static void writeWorkBook(WorkBook book,
java.lang.String formatName,
java.util.Map map,
java.io.File file)
throws java.io.IOException
WorkBook use the formatName and to the
file object.model - the WorkBookformatName - 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.readWorkBook(java.io.File, java.lang.String, java.util.Map)
public static void writeWorkBook(WorkBook book,
java.lang.String formatName,
java.util.Map map,
java.io.OutputStream output)
throws java.io.IOException
WorkBook use the formatName and to the
output stream.model - the WorkBookformatName - the formant namemap - the properties to read modeloutput - the OutputStreamjava.io.IOException - if an error occurs during readingjava.lang.IllegalArgumentException - if any parameter expect map is
null.readWorkBook(java.io.File, java.lang.String, java.util.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||