|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.installer.core.impl.FileDataStore
public class FileDataStore
Utility class for all file handling.
Field Summary | |
---|---|
static FileDataStore |
SHARED
Public instance - to avoid passing a reference to this service to each data object. |
Constructor Summary | |
---|---|
FileDataStore(org.osgi.framework.BundleContext bundleContext)
Create a file util instance and detect the installer directory. |
Method Summary | |
---|---|
protected void |
copyToLocalStorage(InputStream data,
File dataFile)
Copy data to local storage. |
File |
createNewDataFile(InputStream stream,
String url,
String digest,
String hint)
Create a new unique data file. |
File |
createNewDataFile(String hint,
InputStream stream)
|
File |
getDataFile(String fileName)
Return a file with the given name in the installer directory. |
void |
removeFromDigestCache(String url,
String digest)
|
void |
updateDigestCache(String url,
String digest)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static FileDataStore SHARED
Constructor Detail |
---|
public FileDataStore(org.osgi.framework.BundleContext bundleContext)
Method Detail |
---|
public File getDataFile(String fileName)
fileName
- The file namepublic File createNewDataFile(InputStream stream, String url, String digest, String hint) throws IOException
IOException
public void updateDigestCache(String url, String digest)
protected void copyToLocalStorage(InputStream data, File dataFile) throws IOException
IOException
public File createNewDataFile(String hint, InputStream stream) throws IOException
IOException
public void removeFromDigestCache(String url, String digest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |