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.SerializableRepresents 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.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.
-
-
-
Method Detail
-
getId
java.lang.String getId()
Get the unique id for the content.
-
getStream
java.io.InputStream getStream() throws AttivioExceptionGet 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.
-
-