org.eclipse.emf.cdo.spi.transfer
Class FileSystemTransferSystem

java.lang.Object
  extended by org.eclipse.emf.cdo.transfer.CDOTransferSystem
      extended by org.eclipse.emf.cdo.spi.transfer.FileSystemTransferSystem

public class FileSystemTransferSystem
extends CDOTransferSystem

A transfer system that abstracts the external file system.

Since:
4.2

Field Summary
static FileSystemTransferSystem INSTANCE
           
static String TYPE
           
 
Constructor Summary
FileSystemTransferSystem()
           
 
Method Summary
 void createBinary(IPath path, InputStream source, IProgressMonitor monitor)
           
 void createFolder(IPath path)
           
 void createText(IPath path, InputStream source, String encoding, IProgressMonitor monitor)
           
 CDOTransferElement getElement(IPath path)
           
 CDOTransferElement getElement(URI uri)
           
protected  File getFile(IPath path)
           
 String getType()
           
 URI getURI(IPath path)
           
protected  void mkDir(File file)
           
protected  void mkParent(File file)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.cdo.transfer.CDOTransferSystem
createModel, getDefaultTransferType, getElement, isReadOnly, provideResourceSet, saveModels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final FileSystemTransferSystem INSTANCE

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

FileSystemTransferSystem

public FileSystemTransferSystem()
Method Detail

getType

public String getType()
Specified by:
getType in class CDOTransferSystem

getURI

public URI getURI(IPath path)
Specified by:
getURI in class CDOTransferSystem

getElement

public CDOTransferElement getElement(IPath path)
Specified by:
getElement in class CDOTransferSystem

getElement

public CDOTransferElement getElement(URI uri)
Specified by:
getElement in class CDOTransferSystem

createFolder

public void createFolder(IPath path)
Specified by:
createFolder in class CDOTransferSystem

createBinary

public void createBinary(IPath path,
                         InputStream source,
                         IProgressMonitor monitor)
Specified by:
createBinary in class CDOTransferSystem

createText

public void createText(IPath path,
                       InputStream source,
                       String encoding,
                       IProgressMonitor monitor)
Specified by:
createText in class CDOTransferSystem

toString

public String toString()
Overrides:
toString in class Object

getFile

protected File getFile(IPath path)

mkParent

protected void mkParent(File file)

mkDir

protected void mkDir(File file)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.