Class ObjectRepository
java.lang.Object
ecmwf.common.technical.ObjectRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.Object[]
elements()
Elements.Gets the.abstract File
getDir()
Gets the dir.getElement
(File file) Gets the element.abstract String
getExt()
Gets the ext.static String
Gets the new key.String[]
keys()
Keys.long
lastModified
(String key) Last modified.void
Puts the.boolean
Removes the.
-
Constructor Details
-
ObjectRepository
public ObjectRepository()Instantiates a new object repository.
-
-
Method Details
-
getNewKey
-
clear
public void clear()Clear. -
elements
-
get
Gets the.- Parameters:
key
- the key- Returns:
- the object
- Throws:
IOException
- Signals that an I/O exception has occurred.ClassNotFoundException
- the class not found exception
-
getDir
-
getElement
Gets the element.- Parameters:
file
- the file- Returns:
- the element
- Throws:
IOException
- Signals that an I/O exception has occurred.ClassNotFoundException
- the class not found exception
-
getExt
-
keys
-
lastModified
Last modified.- Parameters:
key
- the key- Returns:
- the long
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
put
Puts the.- Parameters:
key
- the keyobj
- the obj- Throws:
IOException
- Signals that an I/O exception has occurred.
-
remove
Removes the.- Parameters:
key
- the key- Returns:
- true, if successful
-