Xindice API
version 1.1

org.apache.xindice.core.meta.inline
Class InlineHeaderBuilder

java.lang.Object
  |
  +--org.apache.xindice.core.meta.inline.InlineHeaderBuilder

public class InlineHeaderBuilder
extends Object

Construct a Value object containing the inline metadata header and value data. The first header byte holds the number of total bytes (counting itself) preceding the data. The second header byte contains the version number of the metadata. Remaining header bytes are the version-specific metadata.

 Version 0: Null
     no version-specific metdata, two byte total length
     byte 1: 2
     byte 2: 0

 Version 1: ResoureType
     resource type, three byte total length
     byte 1: 2
     byte 2: 1
     byte 3: content type (1 => xml, 2 => binary)
 

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Method Summary
static Value createValue(int version, byte[] metadata, byte[] data, int pos, int len)
          Create a Value object containing the inline metadata header and value data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createValue

public static Value createValue(int version,
                                byte[] metadata,
                                byte[] data,
                                int pos,
                                int len)
Create a Value object containing the inline metadata header and value data. NOTE: For maximum performance, we would hand all the pieces to the Value object, which would talk to the BTree by stream, and none of these allocations and copies would be necessary.

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.