org.rosuda.klimt
Class TreeLoader

java.lang.Object
  extended by org.rosuda.ibase.Loader
      extended by org.rosuda.klimt.TreeLoader

public class TreeLoader
extends Loader


Constructor Summary
TreeLoader()
           
 
Method Summary
static void checkPolys(SVar psv, SVarSet vset)
           
static java.lang.String fixVariableName(java.lang.String nam)
           
static SNode Load(java.io.BufferedReader r, java.lang.String tname, DataRoot dr)
          reads a tree and dataset froma text file the buffer may contain leading and trailing garbage; only the first tree is loaded after this method the buffer is either at EOF mark or behind first non-tree line this way you can load multiple trees from one file - separated e.g. by one empty line remark: this method can be used to load trees and data separately, but data must be present before a tree can be loaded - to load a separate tree for existing data pass valid vset to be used with the tree.
static SNode Load(java.io.BufferedReader r, java.lang.String tname, DataRoot dr, long clen)
           
static SNode Load(java.io.BufferedReader r, java.lang.String tname, DataRoot dr, long clen, java.lang.String smark, java.lang.String emark, boolean dsReadOnly, boolean registerIt)
           
static SNode LoadTree(java.io.BufferedReader r, DataRoot dr, java.lang.String name)
           
static SNode LoadTree(java.io.BufferedReader r, DataRoot dr, java.lang.String name, boolean registerIt)
           
 
Methods inherited from class org.rosuda.ibase.Loader
LoadData, LoadPolygons, LoadTSV
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLoader

public TreeLoader()
Method Detail

LoadTree

public static SNode LoadTree(java.io.BufferedReader r,
                             DataRoot dr,
                             java.lang.String name)

LoadTree

public static SNode LoadTree(java.io.BufferedReader r,
                             DataRoot dr,
                             java.lang.String name,
                             boolean registerIt)

checkPolys

public static void checkPolys(SVar psv,
                              SVarSet vset)

Load

public static SNode Load(java.io.BufferedReader r,
                         java.lang.String tname,
                         DataRoot dr)
                  throws java.lang.Exception
reads a tree and dataset froma text file the buffer may contain leading and trailing garbage; only the first tree is loaded after this method the buffer is either at EOF mark or behind first non-tree line this way you can load multiple trees from one file - separated e.g. by one empty line

remark: this method can be used to load trees and data separately, but data must be present before a tree can be loaded - to load a separate tree for existing data pass valid vset to be used with the tree.

Parameters:
r - reader to read the data from
vset - dataset for storing the read variables and caes
Returns:
complete tree linked with the specified dataset
Throws:
java.lang.Exception

Load

public static SNode Load(java.io.BufferedReader r,
                         java.lang.String tname,
                         DataRoot dr,
                         long clen)
                  throws java.lang.Exception
Throws:
java.lang.Exception

Load

public static SNode Load(java.io.BufferedReader r,
                         java.lang.String tname,
                         DataRoot dr,
                         long clen,
                         java.lang.String smark,
                         java.lang.String emark,
                         boolean dsReadOnly,
                         boolean registerIt)
                  throws java.lang.Exception
Throws:
java.lang.Exception

fixVariableName

public static java.lang.String fixVariableName(java.lang.String nam)