From: Sasa M. <sa...@us...> - 2004-06-29 11:31:05
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26513/org/jrobin/core Modified Files: RrdDb.java Log Message: minor changes Index: RrdDb.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdDb.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** RrdDb.java 29 Jun 2004 09:34:38 -0000 1.21 --- RrdDb.java 29 Jun 2004 11:30:55 -0000 1.22 *************** *** 914,921 **** * memory or with custom backends. * @return Canonical path to RRD file; ! * @throws IOException Thrown in case of I/O error. */ public String getCanonicalPath() throws IOException { ! return ((RrdFileBackend) backend).getCanonicalPath(); } --- 914,927 ---- * memory or with custom backends. * @return Canonical path to RRD file; ! * @throws IOException Thrown in case of I/O error or if the underlying backend is ! * not derived from RrdFileBackend. */ public String getCanonicalPath() throws IOException { ! if(backend instanceof RrdFileBackend) { ! return ((RrdFileBackend) backend).getCanonicalPath(); ! } ! else { ! throw new IOException("The underlying backend has no canonical path"); ! } } |