de.java2html.util
Class IoUtilities

java.lang.Object
  extended by de.java2html.util.IoUtilities

public class IoUtilities
extends java.lang.Object

Author:
Markus Gebhard

Method Summary
static void close(java.io.InputStream inputStream)
           
static void close(java.io.OutputStream outputStream)
           
static void close(java.io.Reader reader)
           
static void close(java.io.Writer writer)
           
static void copy(java.io.File sourceFile, java.io.File destinationFile)
           
static void copyStream(java.io.InputStream in, java.io.OutputStream out)
           
static boolean ensureFoldersExist(java.io.File folder)
           
static java.io.File exchangeFileExtension(java.io.File file, java.lang.String newFileExtension)
           
static byte[] readBytes(java.io.InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readBytes

public static byte[] readBytes(java.io.InputStream inputStream)
                        throws java.io.IOException
Throws:
java.io.IOException

copyStream

public static void copyStream(java.io.InputStream in,
                              java.io.OutputStream out)
                       throws java.io.IOException
Throws:
java.io.IOException

close

public static void close(java.io.OutputStream outputStream)

close

public static void close(java.io.InputStream inputStream)

close

public static void close(java.io.Writer writer)

close

public static void close(java.io.Reader reader)

copy

public static void copy(java.io.File sourceFile,
                        java.io.File destinationFile)
                 throws java.io.IOException
Throws:
java.io.IOException

ensureFoldersExist

public static boolean ensureFoldersExist(java.io.File folder)

exchangeFileExtension

public static java.io.File exchangeFileExtension(java.io.File file,
                                                 java.lang.String newFileExtension)


Copyright 2003 - 2006