AbstractSourceFile.java

Go to the documentation of this file.
00001 
00002 //                                                                      //
00003 //  AbstractSourceFile.java                                             //
00004 //                                                                      //
00005 //  experiment.source.AbstractSourceFile -- generic source file class   //
00006 //  Last edited: October 10, 2001 at 4:24 pm                            //
00007 //                                                                      //
00008 //  (c) Copyright 2001 Rice University. All rights reserved.            //
00009 //                                                                      //
00011 package edu.rice.cs.hpc.data.experiment.source;
00012 import java.io.InputStream;
00014 //  CLASS ABSTRACT-SOURCE-FILE                                          //
00016 
00025 public abstract class AbstractSourceFile
00026 {
00028 //  ACCESS TO CONTENTS                                                  //
00030 /*************************************************************************
00031  *  Returns the source file's user visible name.
00032  ************************************************************************/
00033     
00034 public abstract String getName();
00035 /*************************************************************************
00036  *  Returns the number of lines in the source file.
00037  ************************************************************************/
00038     
00039 public abstract int getLineCount();
00040 /*************************************************************************
00041  *  Returns an open input stream for reading the file's contents.
00042  ************************************************************************/
00043     
00044 public abstract InputStream getStream();
00046 //  AVAILABILITY OF SOURCE FILE CONTENTS                                //
00048 /*************************************************************************
00049  *  Returns whether this source file can be located and read.
00050  ************************************************************************/
00051     
00052 public abstract boolean isAvailable();
00053 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1