public class SVNResource extends AbstractFilteredResource
SVNResource operating on the same local copy are undefined.| コンストラクタと説明 | 
|---|
| SVNResource(org.tmatesoft.svn.core.wc.SVNClientManager svnClientMgr,
           org.tmatesoft.svn.core.SVNURL repositoryUrl,
           File workingCopy,
           long workingRevision,
           String resourceFile)Constructor. | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| protected void | checkoutOrUpdateResource()Checks out the resource specified by the  remoteRepositoryin to the working copyworkingCopyDirectory. | 
| protected void | checkWorkingCopyDirectory(File directory)Checks that the given file exists, or can be created, is a directory, and is read/writable by this process. | 
| boolean | exists()Checks whether the resource exists. | 
| InputStream | getInputStream()Gets the inputstream to the resource's data. | 
| org.joda.time.DateTime | getLastModifiedTime()Gets the date and time the resource was last modified. | 
| String | getLocation()Gets resource location information. | 
| protected File | getResourceFile()Gets  Filefor the resource. | 
applyFilter, getResourceFilter, setResourceFilterpublic SVNResource(org.tmatesoft.svn.core.wc.SVNClientManager svnClientMgr,
           org.tmatesoft.svn.core.SVNURL repositoryUrl,
           File workingCopy,
           long workingRevision,
           String resourceFile)
            throws ResourceException
svnClientMgr - manager used to create SVN clientsrepositoryUrl - URL of the remote repositoryworkingCopy - directory that will serve as the root of the local working copyworkingRevision - revision of the resource to retrieve or -1 for HEAD revisionresourceFile - file, within the working copy, represented by this resourceResourceException - thrown if there is a problem initializing the SVN resourcepublic boolean exists()
               throws ResourceException
ResourceException - thrown if there is a problem determining if the resource existspublic InputStream getInputStream() throws ResourceException
ResourceException - thrown if an input stream can not be created for the resourcepublic org.joda.time.DateTime getLastModifiedTime()
                                           throws ResourceException
ResourceException - thrown if the last modified time can not be determinedpublic String getLocation()
protected File getResourceFile() throws ResourceException
File for the resource.ResourceException - thrown if there is a problem fetching the resource or checking on its statusprotected void checkWorkingCopyDirectory(File directory) throws ResourceException
directory - the directory to checkResourceException - thrown if the file is invalidprotected void checkoutOrUpdateResource()
                                 throws ResourceException
remoteRepository in to the working copy
 workingCopyDirectory. If the working copy is empty than an SVN checkout is performed if the working copy
 already exists then an SVN update is performed.ResourceException - thrown if there is a problem communicating with the remote repository, the revision
             does not exist, or the working copy is unusableCopyright © 2012. All Rights Reserved.