java.lang.Object
DCOPObject
org.linpoch.kde.dcop.LinPochFileService
- public class LinPochFileService
- extends DCOPObject
This object serves as a DCOP object in KDE.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
openFiles
private java.util.Map openFiles
openInputStreams
private java.util.Map openInputStreams
openOutputStreams
private java.util.Map openOutputStreams
fileClient
private plp.presentation.fileclient.FileClient fileClient
LinPochFileService
public LinPochFileService(plp.presentation.fileclient.FileClient fileClient)
setFileClient
private void setFileClient(plp.presentation.fileclient.FileClient client)
getFileClient
public plp.presentation.fileclient.FileClient getFileClient()
functions
public java.util.ArrayList functions()
interfaces
public java.util.ArrayList interfaces()
javaProcess
public DCOPAnswer javaProcess(java.lang.String fun,
byte[] data)
- This operation is the java variant to the pocess used in c++
This operation SHOULD be generated!
makeEpocUrl
private java.lang.String makeEpocUrl(java.lang.String url)
addOpenFile
private void addOpenFile(plp.presentation.fileclient.RegularFile file)
removeOpenFile
private void removeOpenFile(plp.presentation.fileclient.RegularFile file)
getOpenFile
private plp.presentation.fileclient.RegularFile getOpenFile(int refNumber)
getOpenFiles
private java.util.Map getOpenFiles()
getOpenInputStreams
private java.util.Map getOpenInputStreams()
addOpenInputStream
private void addOpenInputStream(plp.presentation.fileclient.RegularFile file,
java.io.InputStream stream)
removeOpenStream
private void removeOpenStream(plp.presentation.fileclient.RegularFile file)
getOpenInputStream
private java.io.InputStream getOpenInputStream(plp.presentation.fileclient.RegularFile file)
throws java.io.IOException
getOpenOutputStreams
private java.util.Map getOpenOutputStreams()
addOpenOutputStream
private void addOpenOutputStream(plp.presentation.fileclient.RegularFile file,
java.io.OutputStream stream)
removeOpenOutputStream
private void removeOpenOutputStream(plp.presentation.fileclient.RegularFile file)
getOpenOutputStream
private java.io.OutputStream getOpenOutputStream(plp.presentation.fileclient.RegularFile file)
throws java.io.IOException
getDirectory
public DirectoryAnswer getDirectory(java.lang.String url)
getFile
public FileAnswer getFile(java.lang.String url)
openFile
public int openFile(java.lang.String url)
write
public java.lang.String write(int fileReference,
byte[] data)
read
public FileContentAnswer read(int fileReference,
int length)
closeFile
public void closeFile(int fileReference)
deleteFile
public java.lang.String deleteFile(java.lang.String url)
createFile
public int createFile(java.lang.String url)
deleteDirectory
public java.lang.String deleteDirectory(java.lang.String url)
makeDirectory
public java.lang.String makeDirectory(java.lang.String url)
isConnected
public boolean isConnected()
rename
public java.lang.String rename(java.lang.String sourceUrl,
java.lang.String destinationUrl,
boolean overwrite)