org.jboss.forge.resources
Class UnknownFileResource
java.lang.Object
org.jboss.forge.resources.AbstractResource<File>
org.jboss.forge.resources.FileResource<UnknownFileResource>
org.jboss.forge.resources.UnknownFileResource
- All Implemented Interfaces:
- Resource<File>
public class UnknownFileResource
- extends FileResource<UnknownFileResource>
Represents any regular file which Forge does not hav any special handler for.
- Author:
- Mike Brock
| Methods inherited from class org.jboss.forge.resources.FileResource |
createNewFile, createTempResource, delete, delete, deleteOnExit, exists, getChild, getName, getParent, getResourceInputStream, getUnderlyingResourceObject, isDirectory, isStale, markUpToDate, mkdir, mkdirs, reify, renameTo, renameTo, setContents, setContents, setContents |
UnknownFileResource
public UnknownFileResource(ResourceFactory factory)
UnknownFileResource
public UnknownFileResource(ResourceFactory factory,
File file)
createFrom
public UnknownFileResource createFrom(File file)
- Description copied from class:
FileResource
- Create a new
Resource instance for the target file. The new Resource should be of the same type as
this.
- Specified by:
createFrom in interface Resource<File>- Specified by:
createFrom in class FileResource<UnknownFileResource>
- Parameters:
file - The file to create the resource instance from.
- Returns:
- A new resource.
doListResources
protected List<Resource<?>> doListResources()
- Description copied from class:
AbstractResource
- Strategy method for returning child resources. Subclasses should implement or override this method.
- Specified by:
doListResources in class AbstractResource<File>
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.