Package com.attivio.sdk.service
Class MockContentStoreProvider.MemoryContentPointer
- java.lang.Object
-
- com.attivio.sdk.service.MockContentStoreProvider.MemoryContentPointer
-
- All Implemented Interfaces:
ContentPointer
,java.io.Serializable
- Enclosing class:
- MockContentStoreProvider
protected class MockContentStoreProvider.MemoryContentPointer extends java.lang.Object implements ContentPointer
memory content pointer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemoryContentPointer(java.lang.String namespace, java.lang.String id, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExternalUri()
Get an externally accessible Uri for the data.java.lang.String
getId()
Get the unique id for the content.long
getLastModified()
Get the last modified time for the resource for this pointer.long
getSize()
Returns the size of the content pointer's content in bytes or -1 if unknown.java.lang.String
getStoreName()
Get the name of the store this pointer can be retrieved in.java.io.InputStream
getStream()
Get as an InputStream for reading.
-
-
-
Method Detail
-
getStream
public java.io.InputStream getStream()
Description copied from interface:ContentPointer
Get as an InputStream for reading.- Specified by:
getStream
in interfaceContentPointer
-
getSize
public long getSize()
Description copied from interface:ContentPointer
Returns the size of the content pointer's content in bytes or -1 if unknown.- Specified by:
getSize
in interfaceContentPointer
-
getId
public java.lang.String getId()
Get the unique id for the content.- Specified by:
getId
in interfaceContentPointer
-
getStoreName
public java.lang.String getStoreName()
Get the name of the store this pointer can be retrieved in.- Specified by:
getStoreName
in interfaceContentPointer
-
getExternalUri
public java.lang.String getExternalUri()
Get an externally accessible Uri for the data.- Specified by:
getExternalUri
in interfaceContentPointer
-
getLastModified
public long getLastModified()
Get the last modified time for the resource for this pointer.- Specified by:
getLastModified
in interfaceContentPointer
-
-