Class MemoryProvider
java.lang.Object
org.exoplatform.commons.file.resource.MemoryProvider
- All Implemented Interfaces:
BinaryProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getFilePath(String name) getFilePath(FileInfo fileInfo) longlastModified(String name) voidvoidput(String name, InputStream data) voidvoidbooleantoString()
-
Field Details
-
store
-
location
-
-
Constructor Details
-
MemoryProvider
public MemoryProvider() -
MemoryProvider
-
-
Method Details
-
exists
- Specified by:
existsin interfaceBinaryProvider
-
getBytes
- Specified by:
getBytesin interfaceBinaryProvider
-
getStream
- Specified by:
getStreamin interfaceBinaryProvider
-
getFilePath
- Specified by:
getFilePathin interfaceBinaryProvider- Throws:
IOException
-
getFilePath
- Specified by:
getFilePathin interfaceBinaryProvider- Throws:
IOException
-
getURL
- Specified by:
getURLin interfaceBinaryProvider
-
lastModified
- Specified by:
lastModifiedin interfaceBinaryProvider
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
remove
- Specified by:
removein interfaceBinaryProvider
-
remove
- Specified by:
removein interfaceBinaryProvider- Throws:
FileNotFoundException
-
getLocation
- Specified by:
getLocationin interfaceBinaryProvider
-
toString
-