de.kleopatra.persistence
Class ObjectIOHandler

java.lang.Object
  extended byde.kleopatra.persistence.AbstractIOHandler
      extended byde.kleopatra.persistence.ObjectIOHandler
All Implemented Interfaces:
IOHandler

public class ObjectIOHandler
extends AbstractIOHandler

IOHandler that can read everything... Not tested.

Version:
$Revision: 1.1.1.1 $ - $Date: 2004/05/05 10:02:18 $
Author:
(C) Jeanette Winzenburg, Berlin

Constructor Summary
ObjectIOHandler()
           
 
Method Summary
protected  boolean checkType(java.lang.Object object)
          checks and returns whether type of object is compatible with getHandledType.
 java.lang.String ensureExtension(java.lang.String filename)
          returns the given filename with getFileExtension.
 java.lang.String getDescription()
          a description for use in FileFilters.
 java.lang.String getExtension()
          the fileExtension that should be used to read/write this type.
 java.lang.Class getHandledClass()
          returns the class this handler feels responsible for.
 
Methods inherited from class de.kleopatra.persistence.AbstractIOHandler
getExtensionPosition, read, readResource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIOHandler

public ObjectIOHandler()
Method Detail

ensureExtension

public java.lang.String ensureExtension(java.lang.String filename)
Description copied from interface: IOHandler
returns the given filename with getFileExtension.

Specified by:
ensureExtension in interface IOHandler
Overrides:
ensureExtension in class AbstractIOHandler

checkType

protected boolean checkType(java.lang.Object object)
checks and returns whether type of object is compatible with getHandledType.

Specified by:
checkType in class AbstractIOHandler

getHandledClass

public java.lang.Class getHandledClass()
Description copied from interface: IOHandler
returns the class this handler feels responsible for.


getExtension

public java.lang.String getExtension()
Description copied from interface: IOHandler
the fileExtension that should be used to read/write this type.


getDescription

public java.lang.String getDescription()
Description copied from interface: IOHandler
a description for use in FileFilters.



Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.