|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.ModelIO
public class ModelIO
| Field Summary | |
|---|---|
static String |
DELIMITER_STRING
Key for the delimiter string. |
static String |
ENABLE_LOOSE_FORMAT
Key for enable loose format. |
static String |
PREFERRED_WORK_BOOK_API
The preferred workbook api, used when read and write workbook. |
static String |
PROGRESS_BAR
Key for JProgressBar, used to monitor the input and output stream. |
static String |
QUOTE_CHAR
Key for the quote char. |
| Method Summary | |
|---|---|
static TableModel |
readTableModel(File file,
String formatName,
Map map)
Returns a TableModel. |
static TableModel |
readTableModel(InputStream input,
String formatName,
Map map)
Returns a TableModel. |
static TableModel |
readTableModel(Reader reader,
String formatName,
Map map)
Returns a TableModel. |
static TableModel |
readTableModel(URL url,
String formatName,
Map map)
Returns a TableModel. |
static WorkBook |
readWorkBook(File file,
String formatName,
Map map)
Returns a WorkBook. |
static WorkBook |
readWorkBook(InputStream input,
String formatName,
Map map)
Returns a WorkBook. |
static WorkBook |
readWorkBook(URL url,
String formatName,
Map map)
Returns a WorkBook. |
static void |
writeTableModel(TableModel model,
String formatName,
Map map,
File file)
Writes a TableModel use the formatName and to the
file object. |
static void |
writeTableModel(TableModel model,
String formatName,
Map map,
OutputStream output)
Writes a TableModel use the formatName and to the
output stream. |
static void |
writeTableModel(TableModel model,
String formatName,
Map map,
URL url)
Writes a TableModel use the formatName and to the
url object. |
static void |
writeTableModel(TableModel model,
String formatName,
Map map,
Writer writer)
Writes a TableModel use the formatName and to the
writer. |
static void |
writeWorkBook(WorkBook book,
String formatName,
Map map,
File file)
Writes a WorkBook use the formatName and to the
file object. |
static void |
writeWorkBook(WorkBook book,
String formatName,
Map map,
OutputStream output)
Writes a WorkBook use the formatName and to the
output stream. |
static void |
writeWorkBook(WorkBook book,
String formatName,
Map map,
URL url)
Writes a WorkBook use the formatName and to the
url object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DELIMITER_STRING
Type: java.lang.String
public static final String ENABLE_LOOSE_FORMAT
Type: java.lang.Boolean
public static final String PREFERRED_WORK_BOOK_API
Type: java.lang.String Value: one of the following
public static final String QUOTE_CHAR
Type: java.lang.Character
public static final String PROGRESS_BAR
Type: javax.swing.JProgressBar
| Method Detail |
|---|
public static TableModel readTableModel(File file,
String formatName,
Map map)
throws IOException
TableModel.
file - an File to read fromformatName - the formant namemap - the properties to read model
TableModel or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.File)
public static TableModel readTableModel(InputStream input,
String formatName,
Map map)
throws IOException
TableModel.
input - an InputStream to read fromformatName - the formant namemap - the properties to read model
TableModel or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.File)
public static TableModel readTableModel(Reader reader,
String formatName,
Map map)
throws IOException
TableModel.
reader - an Reader to read fromformatName - the formant namemap - the properties to read model
TableModel or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.File)
public static TableModel readTableModel(URL url,
String formatName,
Map map)
throws IOException
TableModel.
url - an URL to read fromformatName - the formant namemap - the properties to read model
TableModel or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteTableModel(javax.swing.table.TableModel, java.lang.String, java.util.Map, java.io.File)
public static WorkBook readWorkBook(File file,
String formatName,
Map map)
throws IOException
WorkBook.
file - an File to read fromformatName - the formant namemap - the properties to read model
WorkBook or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static WorkBook readWorkBook(InputStream input,
String formatName,
Map map)
throws IOException
WorkBook.
input - an InputStream to read fromformatName - the formant namemap - the properties to read model
WorkBook or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static WorkBook readWorkBook(URL url,
String formatName,
Map map)
throws IOException
WorkBook.
url - an URL to read fromformatName - the formant namemap - the properties to read model
WorkBook or null
IOException - if an error occurs during reading
IllegalArgumentException - if input or
formatName is nullwriteWorkBook(com.zfqjava.swing.WorkBook, java.lang.String, java.util.Map, java.io.File)
public static void writeTableModel(TableModel model,
String formatName,
Map map,
File file)
throws IOException
TableModel use the formatName and to the
file object.
model - the TableModelformatName - the formant namemap - the properties to read modelfile - the File object
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readTableModel(java.io.File, java.lang.String, java.util.Map)
public static void writeTableModel(TableModel model,
String formatName,
Map map,
URL url)
throws IOException
TableModel use the formatName and to the
url object.
model - the TableModelformatName - the formant namemap - the properties to read modelurl - the URL object
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readTableModel(java.io.File, java.lang.String, java.util.Map)
public static void writeTableModel(TableModel model,
String formatName,
Map map,
OutputStream output)
throws IOException
TableModel use the formatName and to the
output stream.
model - the TableModelformatName - the formant namemap - the properties to read modeloutput - the OutputStream
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readTableModel(java.io.File, java.lang.String, java.util.Map)
public static void writeTableModel(TableModel model,
String formatName,
Map map,
Writer writer)
throws IOException
TableModel use the formatName and to the
writer.
model - the TableModelformatName - the formant namemap - the properties to read modelwriter - the Writer
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readTableModel(java.io.File, java.lang.String, java.util.Map)
public static void writeWorkBook(WorkBook book,
String formatName,
Map map,
File file)
throws IOException
WorkBook use the formatName and to the
file object.
book - the WorkBookformatName - the formant namemap - the properties to read modelfile - the File object
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readWorkBook(java.io.File, java.lang.String, java.util.Map)
public static void writeWorkBook(WorkBook book,
String formatName,
Map map,
URL url)
throws IOException
WorkBook use the formatName and to the
url object.
book - the WorkBookformatName - the formant namemap - the properties to read modelurl - the URL object
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readWorkBook(java.io.File, java.lang.String, java.util.Map)
public static void writeWorkBook(WorkBook book,
String formatName,
Map map,
OutputStream output)
throws IOException
WorkBook use the formatName and to the
output stream.
book - the WorkBookformatName - the formant namemap - the properties to read modeloutput - the OutputStream
IOException - if an error occurs during reading
IllegalArgumentException - if any parameter expect map is
null.readWorkBook(java.io.File, java.lang.String, java.util.Map)
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||