Package org.apache.jena.dboe.sys
Class IO_DB
- java.lang.Object
-
- org.apache.jena.dboe.sys.IO_DB
-
public class IO_DB extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IO_DB()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FileasFile(Location loc)Convert aLocationto aFile.static LocationasLocation(java.nio.file.Path path)Convert aPathto aLocation.static java.nio.file.PathasPath(Location location)Convert aLocationto aPath.static intextractIndex(java.lang.String name, java.lang.String namebase, java.lang.String nameSep)Given a filename in "base-NNNN" format, return the value of NNNNstatic java.util.List<java.nio.file.Path>scanForDirByPattern(java.nio.file.Path directory, java.lang.String namebase, java.lang.String nameSep)Find the files in this directory that have namebase as a prefix and are then numbered.
-
-
-
Method Detail
-
asLocation
public static Location asLocation(java.nio.file.Path path)
Convert aPathto aLocation.
-
scanForDirByPattern
public static java.util.List<java.nio.file.Path> scanForDirByPattern(java.nio.file.Path directory, java.lang.String namebase, java.lang.String nameSep)Find the files in this directory that have namebase as a prefix and are then numbered.Returns a sorted list from, low to high index.
-
extractIndex
public static int extractIndex(java.lang.String name, java.lang.String namebase, java.lang.String nameSep)Given a filename in "base-NNNN" format, return the value of NNNN
-
-