infovis.tree.io
Class JarTreeReader

java.lang.Object
  extended by infovis.io.AbstractReader
      extended by infovis.table.io.AbstractTableReader
          extended by infovis.tree.io.AbstractTreeReader
              extended by infovis.tree.io.JarTreeReader

public class JarTreeReader
extends AbstractTreeReader

Creates a Class Tree from a Jar File.

Version:
$Revision: 1.5 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
TreeReaderFactory jar

Field Summary
static String COLUMN_NAME
           
static String COLUMN_PACKAGE
           
static String COLUMN_PATH
           
static String COLUMN_SIZE
           
 
Constructor Summary
JarTreeReader(InputStream in, String name, Tree tree)
           
 
Method Summary
 boolean load()
          Main method for loading the file.
 boolean loadFile(String jarName)
           
 
Methods inherited from class infovis.tree.io.AbstractTreeReader
findNode
 
Methods inherited from class infovis.table.io.AbstractTableReader
close, getBuffer, getBufferedReader, getCommentChar, getField, getIn, getTable, ignoreLine, isEof, read, readInt, readLine, readQuoted, setBuffer, setCommentChar, setEof, setTable, skipToEol
 
Methods inherited from class infovis.io.AbstractReader
createColumn, getEncoding, getName, guessFieldType, setEncoding, setIn, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_NAME

public static final String COLUMN_NAME
See Also:
Constant Field Values

COLUMN_SIZE

public static final String COLUMN_SIZE
See Also:
Constant Field Values

COLUMN_PATH

public static final String COLUMN_PATH
See Also:
Constant Field Values

COLUMN_PACKAGE

public static final String COLUMN_PACKAGE
See Also:
Constant Field Values
Constructor Detail

JarTreeReader

public JarTreeReader(InputStream in,
                     String name,
                     Tree tree)
Method Detail

load

public boolean load()
             throws WrongFormatException
Description copied from class: AbstractReader
Main method for loading the file. The loading may fail at any point, leaving the table in an indefinite state if the methods returns false.

Specified by:
load in class AbstractReader
Returns:
true if the file has been loaded without error, false otherwise.
Throws:
WrongFormatException - if the format is not the one expected.

loadFile

public boolean loadFile(String jarName)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.