blob: a30fb796111c6f4c997e99688a9287a7ed51c514 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.serialization;
import com.yahoo.document.DocumentTypeManager;
import com.yahoo.io.GrowableByteBuffer;
/**
* Factory for creating document de-serializers tied to a document format.
*
* @author geirst
*/
public class DocumentDeserializerFactory {
/**
* Creates a de-serializer for the current head document format.
* This format is an extension of the 6.x format.
*/
public static DocumentDeserializer createHead(DocumentTypeManager manager, GrowableByteBuffer buf) {
return new VespaDocumentDeserializerHead(manager, buf);
}
/**
* Creates a de-serializer for the 6.x document format.
* This format is an extension of the 4.2 format.
*/
public static DocumentDeserializer create6(DocumentTypeManager manager, GrowableByteBuffer buf) {
return new VespaDocumentDeserializer6(manager, buf);
}
}
|