public class InMemoryDataRecord extends java.lang.Object implements DataRecord
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DataIdentifier |
getIdentifier()
Returns the identifier of this record.
|
static InMemoryDataRecord |
getInstance(java.lang.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.
|
java.lang.String |
getReference()
Returns a secure reference to this binary, or
null if no such
reference is available. |
java.io.InputStream |
getStream()
Returns the the binary stream in this record.
|
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract.
|
static boolean |
isInstance(java.lang.String id)
Checks if String can be converted to an instance of this class.
|
java.lang.String |
toString() |
public static boolean isInstance(java.lang.String id)
id - DataRecord identifierpublic static InMemoryDataRecord getInstance(java.lang.String id) throws java.lang.IllegalArgumentException
id - DataRecord identifierjava.lang.IllegalArgumentExceptionpublic DataIdentifier getIdentifier()
DataRecordgetIdentifier in interface DataRecordpublic java.lang.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 java.io.InputStream getStream()
DataRecordgetStream in interface DataRecordpublic long getLastModified()
DataRecordgetLastModified in interface DataRecordpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()Copyright © 2010 - 2022 Adobe. All Rights Reserved