| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.scape_project.watch.adaptor.c3po.C3POProfileReader
public class C3POProfileReader
A content profile parser. Currently it parses the preliminary content profile aggregation and gets only a few values out of it.
| Field Summary | |
|---|---|
protected static String | 
MISSING_VALUE
Indicates a missing value.  | 
| Constructor Summary | |
|---|---|
C3POProfileReader(File f)
A file based constructor for test purposes.  | 
|
C3POProfileReader(InputStream is)
Creates the reader based on the xml document representation stored in the input stream.  | 
|
| Method Summary | |
|---|---|
 String | 
getCollectionName()
Retrieves the collection name or identifier of the content profile.  | 
 String | 
getCollectionSize()
Retrieves the size of the whole collection.  | 
 Map<String,String> | 
getDistribution(String name)
 | 
 String | 
getObjectsAvgSize()
Retrieves the average size of all objects in the collection.  | 
 String | 
getObjectsCount()
Retrieves the objects count in the collection.  | 
 String | 
getObjectsMaxSize()
Retrieves the size of the largest object in the collection.  | 
 String | 
getObjectsMinSize()
Retrieves the size of the smallest object in the collection.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String MISSING_VALUE
| Constructor Detail | 
|---|
public C3POProfileReader(File f)
                  throws FileNotFoundException
f - the file that has the content profile.
FileNotFoundException - if no file was found.public C3POProfileReader(InputStream is)
is - the input stream of the content profile document.| Method Detail | 
|---|
public String getCollectionName()
public String getObjectsCount()
public String getCollectionSize()
public String getObjectsMaxSize()
public String getObjectsMinSize()
public String getObjectsAvgSize()
public Map<String,String> getDistribution(String name)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||