Package com.attivio.sdk.api
Class ContentStoreContentPointer
- java.lang.Object
-
- com.attivio.sdk.api.ContentStoreContentPointer
-
- All Implemented Interfaces:
ContentPointer,java.io.Serializable
public class ContentStoreContentPointer extends java.lang.Object implements ContentPointer
AContentPointerimplementation that uses native APIs to access the Content Store- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentStoreContentPointer(java.lang.String storeName, java.lang.String id)ContentStoreContentPointer(java.lang.String storeName, java.lang.String id, long cachedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetCachedSize()Get the cached size for this content pointer.java.lang.StringgetExternalUri()Get an externally accessible Uri for the data.java.lang.StringgetId()Get the unique id for the content.longgetLastModified()Get the last modified time for the resource for this pointer.longgetSize()Returns the size of the content pointer's content in bytes or -1 if unknown.java.lang.StringgetStoreName()Get the name of the store this pointer can be retrieved in.java.io.InputStreamgetStream()Get as an InputStream for reading.inthashCode()voidsetCachedSize(long value)Set the cached size for this content pointer.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Get the unique id for the content.- Specified by:
getIdin interfaceContentPointer
-
getCachedSize
public long getCachedSize()
Get the cached size for this content pointer.Returns -1 if size has not been cached.
Calling
getSize()will use this value if available, and will populate this value if not available yet.
-
setCachedSize
public void setCachedSize(long value)
Set the cached size for this content pointer.Returns -1 if size has not been cached.
Calling
getSize()will use this value if available, and will populate this value if not available yet.
-
getStream
public java.io.InputStream getStream() throws AttivioExceptionGet as an InputStream for reading.- Specified by:
getStreamin interfaceContentPointer- Throws:
AttivioException
-
getStoreName
public java.lang.String getStoreName()
Get the name of the store this pointer can be retrieved in.- Specified by:
getStoreNamein interfaceContentPointer
-
getExternalUri
public java.lang.String getExternalUri()
Get an externally accessible Uri for the data.- Specified by:
getExternalUriin interfaceContentPointer
-
getLastModified
public long getLastModified()
Get the last modified time for the resource for this pointer.- Specified by:
getLastModifiedin interfaceContentPointer
-
getSize
public long getSize()
Returns the size of the content pointer's content in bytes or -1 if unknown.- Specified by:
getSizein interfaceContentPointer
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-