Xindice API
version 1.1

org.apache.xindice.xml.sax
Interface CompressionHandler


public interface CompressionHandler

CompressionHandler is a SAX callback interface for reporting positional information about Xindice compressed Documents. All of these methods will be called immediate before any SAX start methods.

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

Field Summary
static String HANDLER
           
 
Method Summary
 void dataBytes(byte[] data)
          dataBytes sets the byte array for the definitions to follow.
 void dataLocation(int pos, int len)
          dataLocation reports positional information for the Node to follow.
 void symbolID(short symbolID)
          symbolID reports the SymbolID for the Node to follow.
 void symbols(SymbolTable symbols)
          symbols reports the Symbol table that is being used for the decompression.
 

Field Detail

HANDLER

public static final String HANDLER
Method Detail

symbols

public void symbols(SymbolTable symbols)
symbols reports the Symbol table that is being used for the decompression. This method should only be called when the Symbol table changes in the stream. For example, before and after an imported Node is enountered that uses a diffferent Symbol table.
Parameters:
symbols - The Symbol Table

dataBytes

public void dataBytes(byte[] data)
dataBytes sets the byte array for the definitions to follow. This method should only be called when the byte array object changes in the stream. For example, before and after an imported Node is encountered that uses a different byte array.
Parameters:
data - The Data

dataLocation

public void dataLocation(int pos,
                         int len)
dataLocation reports positional information for the Node to follow.
Parameters:
pos - The offset into the data for this Node
len - The length of this Node's definition

symbolID

public void symbolID(short symbolID)
symbolID reports the SymbolID for the Node to follow. Because Symbol IDs are specific to a Node type (Element, Entity, and Attribute) this value needs to be stored until the type of Node is reported.
Parameters:
symbolID - The Symbol ID

Xindice API
version 1.1

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