Xindice API
version 1.1

Interface InlineMetaWriter

All Known Implementing Classes:
NullWriter, ResourceTypeWriter

public interface InlineMetaWriter

The Value associated with a Record can be prefixed by a header containing 'inline' metadata. This class writes the metadata carried by the header. The original motivation for this extension is to support binary resources in the same filer where the XML documents live.

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

Method Summary
 byte[] getMetadata(InlineMetaMap map)
          Create the metadata.
 int getVersion()
          The header version created by the implementing writer.

Method Detail


public int getVersion()
The header version created by the implementing writer.


public byte[] getMetadata(InlineMetaMap map)
                   throws InlineMetaException
Create the metadata. The contents are drawn from the map.
map - from which the metadata is drawn
InlineMetaException - if the map is not usable by this writer, or is missing required entries.

Xindice API
version 1.1

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