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.IllegalArgumentException
public DataIdentifier getIdentifier()
DataRecord
getIdentifier
in interface DataRecord
public java.lang.String getReference()
DataRecord
null
if no such
reference is available.getReference
in interface DataRecord
null
public long getLength() throws DataStoreException
DataRecord
getLength
in interface DataRecord
DataStoreException
- if the record could not be accessedpublic java.io.InputStream getStream()
DataRecord
getStream
in interface DataRecord
public long getLastModified()
DataRecord
getLastModified
in interface DataRecord
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
Copyright © 2010 - 2020 Adobe. All Rights Reserved