public class InMemoryDataRecord extends Object implements DataRecord
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DataIdentifier |
getIdentifier()
Returns the identifier of this record.
|
static InMemoryDataRecord |
getInstance(String id)
Convert a String to an instance of this class.
|
long |
getLastModified()
Returns the last modified of the record.
|
long |
getLength()
Returns the length of the binary stream in this record.
|
String |
getReference()
Returns a secure reference to this binary, or
null if no such
reference is available. |
InputStream |
getStream()
Returns the the binary stream in this record.
|
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract.
|
static boolean |
isInstance(String id)
Checks if String can be converted to an instance of this class.
|
String |
toString() |
public static boolean isInstance(String id)
id - DataRecord identifierpublic static InMemoryDataRecord getInstance(String id) throws IllegalArgumentException
id - DataRecord identifierIllegalArgumentExceptionpublic DataIdentifier getIdentifier()
DataRecordgetIdentifier in interface DataRecordpublic String getReference()
DataRecordnull if no such
reference is available.getReference in interface DataRecordnullpublic long getLength()
throws DataStoreException
DataRecordgetLength in interface DataRecordDataStoreException - if the record could not be accessedpublic InputStream getStream()
DataRecordgetStream in interface DataRecordpublic long getLastModified()
DataRecordgetLastModified in interface DataRecordpublic int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2010 - 2020 Adobe. All Rights Reserved