| java.lang.Object org.h2.samples.FileFunctions
FileFunctions | public class FileFunctions (Code) | | This sample application shows how to create a user defined function
to read a file from the file system.
|
readFile | public static byte[] readFile(String fileName) throws IOException(Code) | | Read a file into a byte array.
Parameters: fileName - the file name the byte array |
readTextFile | public static String readTextFile(String fileName) throws IOException(Code) | | Read a String from a file. The default encoding for this platform is used.
Parameters: fileName - the file name the text |
readTextFileWithEncoding | public static String readTextFileWithEncoding(String fileName, String encoding) throws IOException(Code) | | Read a String from a file using the specified encoding.
Parameters: fileName - the file name Parameters: encoding - the encoding the text |
|
|