Package com.attivio.sdk.ingest
Interface ContentPointer
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ByteArrayContentPointer
,ContentStoreContentPointer
,FileContentPointer
,MockContentStoreClient.MemoryContentPointer
,MockContentStoreProvider.MemoryContentPointer
public interface ContentPointer extends java.io.Serializable
Represents a pointer to a piece of content.ContentPointers can be used to store/reference large files, byte arrays, etc without having to store their entire contents in memory.
$Revision$
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
getId
java.lang.String getId()
Get the unique id for the content.
-
getStream
java.io.InputStream getStream() throws AttivioException
Get as an InputStream for reading.- Throws:
AttivioException
-
getStoreName
java.lang.String getStoreName()
Get the name of the store this pointer can be retrieved in.
-
getExternalUri
java.lang.String getExternalUri()
Get an externally accessible Uri for the data.
-
getLastModified
long getLastModified()
Get the last modified time for the resource for this pointer.
-
getSize
long getSize()
Returns the size of the content pointer's content in bytes or -1 if unknown.
-
-