You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/09/27 19:51:26 UTC
svn commit: r1527002 -
/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java
Author: andy
Date: Fri Sep 27 17:51:25 2013
New Revision: 1527002
URL: http://svn.apache.org/r1527002
Log:
Allow external registration of recognized files.
Modified:
jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java
Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java?rev=1527002&r1=1527001&r2=1527002&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/sys/FileRef.java Fri Sep 27 17:51:25 2013
@@ -111,6 +111,10 @@ public class FileRef
}
public static final FileRef Journal = get(journalIdx) ;
+ public static void register(String fn) {
+ file(fn) ;
+ }
+
private static void add(int idx, String fn)
{
name2id.put(fn, idx) ;