Documentation of 'org.encog.util.file.Directory' Java class
Directory
org.encog.util.file

Class Directory



  • public final class Directory
    extends java.lang.Object
    Directory utilities.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int BUFFER_SIZE
      Default buffer size for read/write operations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void copyFile(java.io.File source, java.io.File target)
      Copy the specified file.
      static boolean deleteDirectory(java.io.File path)
      Delete a directory and all children.
      static java.lang.String readStream(java.io.InputStream is)
      Read the entire contents of a stream into a string.
      static java.lang.String readTextFile(java.lang.String filename)
      Read the entire contents of a stream into a string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BUFFER_SIZE

        public static final int BUFFER_SIZE
        Default buffer size for read/write operations.
        See Also:
        Constant Field Values
    • Method Detail

      • copyFile

        public static void copyFile(java.io.File source,
                                    java.io.File target)
        Copy the specified file.
        Parameters:
        source - The file to copy.
        target - The target of the copy.
      • deleteDirectory

        public static boolean deleteDirectory(java.io.File path)
        Delete a directory and all children.
        Parameters:
        path - The path to delete.
        Returns:
        True if successful.
      • readStream

        public static java.lang.String readStream(java.io.InputStream is)
        Read the entire contents of a stream into a string.
        Parameters:
        is - The input stream to read from.
        Returns:
        The string that was read in.
      • readTextFile

        public static java.lang.String readTextFile(java.lang.String filename)
        Read the entire contents of a stream into a string.
        Parameters:
        filename - The input stream to read from.
        Returns:
        The string that was read in.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.