Java EE 5 SDK

com.sun.appserv.management.util.misc
Class FileUtils

java.lang.Object
  extended by com.sun.appserv.management.util.misc.FileUtils

public final class FileUtils
extends Object

The API that should be used to output from a Cmd running within the framework.


Method Summary
static String fileToString(File src)
           
static String fileToString(File src, int readBufferSize)
           
static void stringToFile(String s, File dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fileToString

public static String fileToString(File src)
                           throws FileNotFoundException,
                                  IOException
Throws:
FileNotFoundException
IOException

fileToString

public static String fileToString(File src,
                                  int readBufferSize)
                           throws FileNotFoundException,
                                  IOException
Throws:
FileNotFoundException
IOException

stringToFile

public static void stringToFile(String s,
                                File dest)
                         throws IOException
Throws:
IOException

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.