Xindice API
version 1.2m1

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

java.lang.Object
  extended byorg.apache.xindice.core.meta.inline.ResourceTypeWriter
All Implemented Interfaces:
InlineMetaWriter

public class ResourceTypeWriter
extends Object
implements InlineMetaWriter

Write metadata identifying the resource type (xml or binary).

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

Constructor Summary
ResourceTypeWriter()
           
 
Method Summary
 byte[] getMetadata(InlineMetaMap map)
          Create the metadata.
 int getVersion()
          The header version created by the implementing writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTypeWriter

public ResourceTypeWriter()
Method Detail

getVersion

public int getVersion()
Description copied from interface: InlineMetaWriter
The header version created by the implementing writer.

Specified by:
getVersion in interface InlineMetaWriter
See Also:
InlineMetaWriter.getVersion()

getMetadata

public byte[] getMetadata(InlineMetaMap map)
                   throws InlineMetaException
Description copied from interface: InlineMetaWriter
Create the metadata. The contents are drawn from the map.

Specified by:
getMetadata in interface InlineMetaWriter
Parameters:
map - from which the metadata is drawn
Throws:
InlineMetaException - if the map is not usable by this writer, or is missing required entries.
See Also:
InlineMetaWriter.getMetadata(InlineMetaMap)

Xindice API
version 1.2m1

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