com.ximpleware.extended
Class ContextBuffer

java.lang.Object
  extended by com.ximpleware.extended.ContextBuffer

public class ContextBuffer
extends Object

This class is used as the global stack in VTDNavHuge class. The VTDNavHuge object instantiates a context Buffer object, then everytime load/store is called, current context information gets pushed/popped to/from the ContextBuffer. Creation date: (11/16/03 4:30:45 PM)


Field Summary
protected  int size
           
 
Constructor Summary
ContextBuffer(int i)
          ContextBuffer constructor comment.
ContextBuffer(int p, int i)
          ContextBuffer constructor comment.
 
Method Summary
 void clear()
          Set the context buffer size to zero capacity untouched
 boolean load(int[] output)
          Pop the content value back into an integer array.
static void main(String[] args)
          Test the load and store functions.
 void store(int[] input)
          Push the array content on to the stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size
Constructor Detail

ContextBuffer

public ContextBuffer(int i)
ContextBuffer constructor comment. inc is the # of int to be pushed/pop to/from the underlying storage

Parameters:
i - int

ContextBuffer

public ContextBuffer(int p,
                     int i)
ContextBuffer constructor comment. incSize is the # of int to be pushed/pop to/from the underlying storage Creation date: (11/16/03 8:02:21 PM)

Parameters:
p - int (pageSize equals (1<i - int
Method Detail

load

public boolean load(int[] output)
Pop the content value back into an integer array. Creation date: (11/17/03 1:07:42 AM)

Parameters:
output - int[]
Returns:
boolean If load is successful.

main

public static void main(String[] args)
Test the load and store functions. Creation date: (11/19/03 3:51:17 PM)

Parameters:
args - java.lang.String[]

clear

public void clear()
Set the context buffer size to zero capacity untouched


store

public void store(int[] input)
Push the array content on to the stack. Creation date: (11/17/03 1:06:43 AM)

Parameters:
input - int[]


Copyright © 2013. All Rights Reserved.