public class ByteArrayContentPointer extends Object implements ContentPointer
Constructor and Description |
---|
ByteArrayContentPointer(String id,
byte[] b) |
ByteArrayContentPointer(String id,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
byte[] |
getBytes() |
String |
getExternalUri()
Get an externally accessible Uri for the data.
|
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.
|
String |
getStoreName()
Get the name of the store this pointer can be retrieved in.
|
InputStream |
getStream()
Get as an InputStream for reading.
|
int |
hashCode() |
void |
setLastModified(long lastModified) |
public ByteArrayContentPointer(String id, byte[] b)
public ByteArrayContentPointer(String id, InputStream in) throws IOException
IOException
public String getExternalUri()
getExternalUri
in interface ContentPointer
public String getId()
getId
in interface ContentPointer
public long getLastModified()
getLastModified
in interface ContentPointer
public long getSize()
getSize
in interface ContentPointer
public String getStoreName()
getStoreName
in interface ContentPointer
public InputStream getStream() throws AttivioException
getStream
in interface ContentPointer
AttivioException
public byte[] getBytes()
public void setLastModified(long lastModified)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.