Xindice API
version 1.1b4

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

java.lang.Object
  extended byorg.apache.xindice.core.meta.inline.ResourceTypeReader
All Implemented Interfaces:
InlineMetaReader

public class ResourceTypeReader
extends java.lang.Object
implements InlineMetaReader

Version:
CVS $Revision: 1.5 $, $Date: 2004/02/08 02:50:37 $

Nested Class Summary
static class ResourceTypeReader.ResourceTypeMap
          A simple and efficient Map implementation that holds the attributes available from a ResourceType header.
 
Field Summary
static java.lang.Integer BINARY
           
static java.lang.Integer XML
           
 
Constructor Summary
ResourceTypeReader()
           
 
Method Summary
 int getVersion()
          The second byte of the header contains the version.
 InlineMetaMap read(byte[] data, int offset, int length)
          When a header is read, it generates a Map containing the attributes carried by the header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML

public static final java.lang.Integer XML

BINARY

public static final java.lang.Integer BINARY
Constructor Detail

ResourceTypeReader

public ResourceTypeReader()
Method Detail

getVersion

public int getVersion()
Description copied from interface: InlineMetaReader
The second byte of the header contains the version. The reader which is called to read the header is determined by the version.

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

read

public InlineMetaMap read(byte[] data,
                          int offset,
                          int length)
                   throws InlineMetaException
Description copied from interface: InlineMetaReader
When a header is read, it generates a Map containing the attributes carried by the header.

Specified by:
read in interface InlineMetaReader
Parameters:
data - array in which the header is embedded
offset - from the beginning of the data array to the beginning of the header.
length - of the header data
Returns:
Map containing the attributes read from the header
Throws:
InlineMetaException - if the header data is corrupted or of the wrong length
See Also:
InlineMetaReader.read(byte[], int, int)

Xindice API
version 1.1b4

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