Xindice API
version 1.1b4

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

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

public class InlineHeaderBuilder
extends java.lang.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:
CVS $Revision: 1.6 $, $Date: 2004/02/08 02:50:37 $

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.1b4

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