public class ItemCaching
extends java.lang.Object
Constructor and Description |
---|
ItemCaching() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheFile(java.io.File file,
java.lang.String studentID)
Cache file.
|
static void |
cacheImage(java.lang.String image,
java.lang.String studentID)
Cache image.
|
static void |
copyImage(java.lang.String oldImage,
java.lang.String newAddress)
Copy image.
|
static GalleryItemDatabaseFormat |
deconstructItem(IItem item,
java.lang.Object[] info,
java.lang.String studentID)
Deconstruct item.
|
static java.lang.String |
getExtension(java.lang.String s)
Gets the extension.
|
static java.lang.String |
getFullImageName(java.lang.String image,
java.lang.String studentID)
Gets the full image name.
|
static IItem |
reconstructItem(GalleryItemDatabaseFormat itemRepresentation,
IStage stage,
java.lang.String studentID)
Reconstruct item.
|
static IItem |
reconstructItem(GalleryItemDatabaseFormat itemRepresentation,
IStage stage,
java.lang.String studentID,
float deceleration)
Reconstruct item.
|
static java.lang.String |
removeExtension(java.lang.String s)
Removes the extension.
|
public static void cacheFile(java.io.File file, java.lang.String studentID)
file
- the filestudentID
- the student idpublic static void cacheImage(java.lang.String image, java.lang.String studentID)
image
- the imagestudentID
- the student idpublic static void copyImage(java.lang.String oldImage, java.lang.String newAddress)
oldImage
- the old imagenewAddress
- the new addresspublic static GalleryItemDatabaseFormat deconstructItem(IItem item, java.lang.Object[] info, java.lang.String studentID)
item
- the iteminfo
- the infostudentID
- the student idpublic static java.lang.String getExtension(java.lang.String s)
s
- the spublic static java.lang.String getFullImageName(java.lang.String image, java.lang.String studentID)
image
- the imagestudentID
- the student idpublic static IItem reconstructItem(GalleryItemDatabaseFormat itemRepresentation, IStage stage, java.lang.String studentID)
itemRepresentation
- the item representationstage
- the stagestudentID
- the student idpublic static IItem reconstructItem(GalleryItemDatabaseFormat itemRepresentation, IStage stage, java.lang.String studentID, float deceleration)
itemRepresentation
- the item representationstage
- the stagestudentID
- the student iddeceleration
- the decelerationpublic static java.lang.String removeExtension(java.lang.String s)
s
- the s