org.tagnetic.core.util
Class FileUtil

java.lang.Object
  extended byorg.tagnetic.core.util.FileUtil

public class FileUtil
extends java.lang.Object


Constructor Summary
FileUtil()
           
 
Method Summary
static java.io.BufferedReader createReader(TagContext tagContext, java.lang.String fileName)
           
static java.io.BufferedWriter createWriter(TagContext tagContext, java.lang.String fileName)
           
static java.lang.String getAbsolutePath(java.lang.String relatedFileName, java.lang.String targetFileName)
           
static java.lang.String getAbsolutePathUsingTagContextCurrentFile(TagContext tagContext, java.lang.String targetFileName)
           
static void makeFile(java.io.File file)
           
static java.lang.String readFile(TagContext tagContext, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

readFile

public static java.lang.String readFile(TagContext tagContext,
                                        java.lang.String fileName)
                                 throws java.io.FileNotFoundException,
                                        java.io.UnsupportedEncodingException,
                                        java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException

createReader

public static java.io.BufferedReader createReader(TagContext tagContext,
                                                  java.lang.String fileName)
                                           throws java.io.FileNotFoundException,
                                                  java.io.UnsupportedEncodingException
Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException

createWriter

public static java.io.BufferedWriter createWriter(TagContext tagContext,
                                                  java.lang.String fileName)
                                           throws java.io.IOException
Throws:
java.io.IOException

makeFile

public static void makeFile(java.io.File file)
                     throws java.io.IOException
Throws:
java.io.IOException

getAbsolutePath

public static java.lang.String getAbsolutePath(java.lang.String relatedFileName,
                                               java.lang.String targetFileName)

getAbsolutePathUsingTagContextCurrentFile

public static java.lang.String getAbsolutePathUsingTagContextCurrentFile(TagContext tagContext,
                                                                         java.lang.String targetFileName)


Copyright © 2005 tagnetic.org. All Rights Reserved.