public class InMemoryDataRecord extends Object implements org.apache.jackrabbit.core.data.DataRecord
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.apache.jackrabbit.core.data.DataIdentifier |
getIdentifier() |
static InMemoryDataRecord |
getInstance(String id)
Convert a String to an instance of this class.
|
long |
getLastModified() |
long |
getLength() |
String |
getReference() |
InputStream |
getStream() |
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 org.apache.jackrabbit.core.data.DataIdentifier getIdentifier()
getIdentifier in interface org.apache.jackrabbit.core.data.DataRecordpublic String getReference()
getReference in interface org.apache.jackrabbit.core.data.DataRecordpublic long getLength()
throws org.apache.jackrabbit.core.data.DataStoreException
getLength in interface org.apache.jackrabbit.core.data.DataRecordorg.apache.jackrabbit.core.data.DataStoreExceptionpublic InputStream getStream()
getStream in interface org.apache.jackrabbit.core.data.DataRecordpublic long getLastModified()
getLastModified in interface org.apache.jackrabbit.core.data.DataRecordpublic int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.