zinger.bsheet
Class HTMLPersistence
java.lang.Object
zinger.bsheet.AbstractPersistence
zinger.bsheet.HTMLPersistence
- All Implemented Interfaces:
- Persistence
public class HTMLPersistence
- extends AbstractPersistence
Method Summary |
protected char |
hexDigit(int n)
|
boolean |
isLoadCapable()
|
boolean |
load(javax.swing.JTable table,
java.io.File file)
Loads a document into the model behind the table. |
boolean |
save(javax.swing.JTable table,
java.io.File file)
Persists the document from the model behind the table. |
void |
save(javax.swing.JTable table,
java.io.OutputStream os)
|
void |
save(javax.swing.JTable table,
java.io.Writer writer)
|
protected void |
writeHtmlRGB(java.awt.Color color,
java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final HTMLPersistence INSTANCE
HTML_VAL_PATTERN
protected static final java.util.regex.Pattern HTML_VAL_PATTERN
mapPersistence
protected final StandardMapPersistence mapPersistence
HTMLPersistence
protected HTMLPersistence()
isLoadCapable
public boolean isLoadCapable()
- Returns:
true
if the implementation can load a document as well as persist it
load
public boolean load(javax.swing.JTable table,
java.io.File file)
throws java.io.IOException,
java.lang.UnsupportedOperationException
- Description copied from interface:
Persistence
- Loads a document into the model behind the table.
- Returns:
true
if the document was loaded successfully
- Throws:
java.io.IOException
- if an IO problem occurred during loading the document
java.lang.UnsupportedOperationException
- if the implementation is not capable of loading
documents as per isLoadCapable()
method- See Also:
Persistence.isLoadCapable()
save
public boolean save(javax.swing.JTable table,
java.io.File file)
throws java.io.IOException
- Description copied from interface:
Persistence
- Persists the document from the model behind the table.
- Returns:
true
if the document was persisted successfully
- Throws:
java.io.IOException
- if an IO problem occurred during persisting the document
save
public void save(javax.swing.JTable table,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
save
public void save(javax.swing.JTable table,
java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
writeHtmlRGB
protected void writeHtmlRGB(java.awt.Color color,
java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
hexDigit
protected char hexDigit(int n)