From ece7d18cf35374bf4e26d041799cda8f791c89f8 Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 7 Jul 2003 10:58:37 +0000 Subject: Initial commit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../at/gv/egovernment/moa/util/FileUtils.html | 324 +++++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/FileUtils.html (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/FileUtils.html') diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/FileUtils.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/FileUtils.html new file mode 100644 index 000000000..b11c1d1d6 --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/FileUtils.html @@ -0,0 +1,324 @@ + + + + + + +MOA SP/SS Server Internal API: Class FileUtils + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +at.gv.egovernment.moa.util +
+Class FileUtils

+
+java.lang.Object
+  |
+  +--at.gv.egovernment.moa.util.FileUtils
+
+
+
+
public class FileUtils
extends Object
+ +

+Utility for accessing files on the file system, and for reading from input streams. +

+

+
Version:
$Id$
+
Author:
Paul Ivancsics
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
FileUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static byte[]readFile(String filename) + +
+          Reads a file, given by filename, into a byte array.
+static StringreadFile(String filename, + String encoding) + +
+          Reads a file, given by filename, into a String.
+static byte[]readResource(String name) + +
+          Reads a file from a resource.
+static StringreadResource(String name, + String encoding) + +
+          Reads a file from a resource.
+static byte[]readURL(String urlString) + +
+          Reads a file, given by URL, into a byte array.
+static StringreadURL(String urlString, + String encoding) + +
+          Reads a file, given by URL, into a String.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+FileUtils

+
+public FileUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+readURL

+
+public static byte[] readURL(String urlString)
+                      throws IOException
+
+
Reads a file, given by URL, into a byte array.
+
Parameters:
urlString - file URL
Returns:
file content
Throws:
IOException - on any exception thrown
+
+
+
+ +

+readURL

+
+public static String readURL(String urlString,
+                             String encoding)
+                      throws IOException
+
+
Reads a file, given by URL, into a String.
+
Parameters:
urlString - file URL
encoding - character encoding
Returns:
file content
Throws:
IOException - on any exception thrown
+
+
+
+ +

+readFile

+
+public static byte[] readFile(String filename)
+                       throws IOException
+
+
Reads a file, given by filename, into a byte array.
+
Parameters:
filename - filename
Returns:
file content
Throws:
IOException - on any exception thrown
+
+
+
+ +

+readFile

+
+public static String readFile(String filename,
+                              String encoding)
+                       throws IOException
+
+
Reads a file, given by filename, into a String.
+
Parameters:
filename - filename
encoding - character encoding
Returns:
file content
Throws:
IOException - on any exception thrown
+
+
+
+ +

+readResource

+
+public static byte[] readResource(String name)
+                           throws IOException
+
+
Reads a file from a resource.
+
Parameters:
name - resource name
Returns:
file content as a byte array
Throws:
IOException - on any exception thrown
+
+
+
+ +

+readResource

+
+public static String readResource(String name,
+                                  String encoding)
+                           throws IOException
+
+
Reads a file from a resource.
+
Parameters:
name - filename
encoding - character encoding
Returns:
file content
Throws:
IOException - on any exception thrown
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + -- cgit v1.2.3