public abstract class IdFactory extends Object
| Constructor and Description |
|---|
IdFactory() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createContentId(byte[] serialized)
Creates a new id based on the specified serialized data.
|
protected byte[] |
digest(byte[] data)
Return a digest for some data.
|
static IdFactory |
getDigestFactory()
Return the default factory that will create node and revision ids based
on their content.
|
public byte[] createContentId(byte[] serialized)
throws Exception
createContentId is:
createId(data1).equals(createId(data2)) == Arrays.equals(data1, data2)serialized - serialized dataException - if an error occursprotected byte[] digest(byte[] data)
throws Exception
data - dataExceptionpublic static IdFactory getDigestFactory()
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.