Package com.attivio.sdk.test
Class FileContentPointer
- java.lang.Object
-
- com.attivio.sdk.test.FileContentPointer
-
- All Implemented Interfaces:
ContentPointer,java.io.Serializable
public class FileContentPointer extends java.lang.Object implements ContentPointer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileContentPointer(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete 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.java.lang.StringtoString()
-
-
-
Method Detail
-
getExternalUri
public java.lang.String getExternalUri()
Description copied from interface:ContentPointerGet an externally accessible Uri for the data.- Specified by:
getExternalUriin interfaceContentPointer
-
getId
public java.lang.String getId()
Description copied from interface:ContentPointerGet the unique id for the content.- Specified by:
getIdin interfaceContentPointer
-
getLastModified
public long getLastModified()
Description copied from interface:ContentPointerGet the last modified time for the resource for this pointer.- Specified by:
getLastModifiedin interfaceContentPointer
-
getStoreName
public java.lang.String getStoreName()
Description copied from interface:ContentPointerGet the name of the store this pointer can be retrieved in.- Specified by:
getStoreNamein interfaceContentPointer
-
getSize
public long getSize()
Description copied from interface:ContentPointerReturns the size of the content pointer's content in bytes or -1 if unknown.- Specified by:
getSizein interfaceContentPointer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStream
public java.io.InputStream getStream() throws AttivioExceptionDescription copied from interface:ContentPointerGet as an InputStream for reading.- Specified by:
getStreamin interfaceContentPointer- Throws:
AttivioException
-
-