zinger.bsheet
Class StreamMapPersistence

java.lang.Object
  extended by zinger.bsheet.AbstractPersistence
      extended by zinger.bsheet.StandardMapPersistence
          extended by zinger.bsheet.StreamMapPersistence
All Implemented Interfaces:
Persistence
Direct Known Subclasses:
FlatFilePersistence, XMLPersistence

public abstract class StreamMapPersistence
extends StandardMapPersistence


Field Summary
 
Fields inherited from class zinger.bsheet.StandardMapPersistence
APPEARANCE_MAP_KEY, COLUMN_IDENTIFIERS_KEY, COLUMNS_KEY, DATA_VECTOR_KEY, DATA_VECTOR_LENGTH_KEY, FORMATS_KEY, ROW_HEIGHTS_KEY, VERSION_KEY
 
Fields inherited from class zinger.bsheet.AbstractPersistence
extensions, fileFilter
 
Constructor Summary
StreamMapPersistence()
           
StreamMapPersistence(javax.swing.filechooser.FileFilter fileFilter, java.lang.String[] extensions)
           
 
Method Summary
protected  java.util.Map load(java.io.File file)
           
protected abstract  java.util.Map load(java.io.InputStream is)
           
protected  void save(java.util.Map map, java.io.File file)
           
protected abstract  void save(java.util.Map map, java.io.OutputStream os)
           
 
Methods inherited from class zinger.bsheet.StandardMapPersistence
decompressDataVector, evalValues, getColumns, getCompressedDataVector, isLoadCapable, load, load, save, save, setColumns
 
Methods inherited from class zinger.bsheet.AbstractPersistence
autocorrectFile, getFileFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamMapPersistence

public StreamMapPersistence()

StreamMapPersistence

public StreamMapPersistence(javax.swing.filechooser.FileFilter fileFilter,
                            java.lang.String[] extensions)
Method Detail

load

protected java.util.Map load(java.io.File file)
                      throws java.io.IOException,
                             java.lang.UnsupportedOperationException
Specified by:
load in class StandardMapPersistence
Throws:
java.io.IOException
java.lang.UnsupportedOperationException

load

protected abstract java.util.Map load(java.io.InputStream is)
                               throws java.io.IOException,
                                      java.lang.UnsupportedOperationException
Throws:
java.io.IOException
java.lang.UnsupportedOperationException

save

protected void save(java.util.Map map,
                    java.io.File file)
             throws java.io.IOException
Specified by:
save in class StandardMapPersistence
Throws:
java.io.IOException

save

protected abstract void save(java.util.Map map,
                             java.io.OutputStream os)
                      throws java.io.IOException
Throws:
java.io.IOException