com.googlecode.jpattern.core.textfiles.local
Class LocalFile

java.lang.Object
  extended by com.googlecode.jpattern.core.textfiles.local.LocalFile
All Implemented Interfaces:
IFile, Serializable

public class LocalFile
extends Object
implements IFile

Author:
Francesco Cina' 09/giu/2010
See Also:
Serialized Form

Constructor Summary
LocalFile(File file, CharacterEncoding encodingCharset)
           
 
Method Summary
 boolean exists()
           
 IFileReader getFileReader()
           
 IFileWriter getFileWriter(boolean append)
           
 String getName()
           
 String getPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFile

public LocalFile(File file,
                 CharacterEncoding encodingCharset)
Method Detail

getPath

public String getPath()
Specified by:
getPath in interface IFile

getName

public String getName()
Specified by:
getName in interface IFile

exists

public boolean exists()
Specified by:
exists in interface IFile

getFileReader

public IFileReader getFileReader()
Specified by:
getFileReader in interface IFile

getFileWriter

public IFileWriter getFileWriter(boolean append)
Specified by:
getFileWriter in interface IFile


Copyright © 2011. All Rights Reserved.