com.googlecode.jpattern.core.textfiles.local
Class LocalResource
java.lang.Object
com.googlecode.jpattern.core.textfiles.local.LocalResource
- All Implemented Interfaces:
- IResource, java.io.Serializable
public class LocalResource
- extends java.lang.Object
- implements IResource
- Author:
- Francesco Cina'
10/mag/2010
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalResource
public LocalResource(java.lang.String path,
CharacterEncoding defaultEncodingCharset)
delete
public boolean delete(java.lang.String filename)
- Specified by:
delete in interface IResource
getFile
public IFile getFile(java.lang.String filename,
CharacterEncoding encodingCharset)
- Specified by:
getFile in interface IResource
getFile
public IFile getFile(java.lang.String filename)
- Specified by:
getFile in interface IResource
create
public IFile create(java.lang.String filename,
java.lang.String text)
throws java.lang.Exception
- Specified by:
create in interface IResource
- Throws:
java.lang.Exception
create
public IFile create(java.lang.String filename,
java.lang.String text,
CharacterEncoding encodingCharset)
throws java.io.IOException
- Specified by:
create in interface IResource
- Throws:
java.io.IOException
getFilenames
public java.util.List<java.lang.String> getFilenames()
- Specified by:
getFilenames in interface IResource
write
protected void write(java.io.File file,
java.lang.String text)
throws java.io.IOException
- Throws:
java.io.IOException
isValid
public boolean isValid()
- Specified by:
isValid in interface IResource
getName
public java.lang.String getName()
- Specified by:
getName in interface IResource
getPath
public java.lang.String getPath()
- Specified by:
getPath in interface IResource
rename
public boolean rename(java.lang.String filename,
java.lang.String newFilename)
- Specified by:
rename in interface IResource
Copyright © 2011. All Rights Reserved.