Package oracle.spatial.network.nfe.util
Class FileUtils
- java.lang.Object
-
- oracle.spatial.network.nfe.util.FileUtils
-
public class FileUtils extends java.lang.ObjectFiles utilities class.
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringreadTxtFile(java.lang.String filePath)Reads a text file.static java.util.Collection<java.lang.String>readTxtFile(java.lang.String filePath, java.lang.String split)Reads a text file and returns it in tokens split by the specified string.
-
-
-
Method Detail
-
readTxtFile
public static java.lang.String readTxtFile(java.lang.String filePath) throws NFEIOExceptionReads a text file.- Parameters:
filePath- file path to read.- Returns:
- An String object with the content of the file.
- Throws:
NFEIOException- When there is a problem reading the file.
-
readTxtFile
public static java.util.Collection<java.lang.String> readTxtFile(java.lang.String filePath, java.lang.String split) throws NFEIOExceptionReads a text file and returns it in tokens split by the specified string. Blank and empty tokens are not included.- Parameters:
filePath- file path to read.split- string to split the file.- Returns:
- An array of String objects containing the tokens.
- Throws:
NFEIOException- When there is a problem reading the file.
-
-