org.apache.xindice.core.meta.inline
Class ResourceTypeReader
java.lang.Object
org.apache.xindice.core.meta.inline.ResourceTypeReader
- All Implemented Interfaces:
- InlineMetaReader
- public class ResourceTypeReader
- extends Object
- implements InlineMetaReader
- Version:
- $Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
Nested Class Summary |
static class |
ResourceTypeReader.ResourceTypeMap
A simple and efficient Map implementation that holds
the attributes available from a ResourceType header. |
Method Summary |
int |
getVersion()
The second byte of the header contains the version. |
InlineMetaMap |
read(Value data)
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 |
XML
public static final Integer XML
BINARY
public static final Integer BINARY
ResourceTypeReader
public ResourceTypeReader()
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(Value data)
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
- Value object in which the header is embedded
- 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(Value)
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.