Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.linpoch.kde.dcop
Class LinPochFileService  view LinPochFileService download LinPochFileService.java

java.lang.Object
  extended byDCOPObject
      extended byorg.linpoch.kde.dcop.LinPochFileService

public class LinPochFileService
extends DCOPObject

This object serves as a DCOP object in KDE.


Field Summary
private  plp.presentation.fileclient.FileClient fileClient
           
private  java.util.Map openFiles
           
private  java.util.Map openInputStreams
           
private  java.util.Map openOutputStreams
           
 
Constructor Summary
LinPochFileService(plp.presentation.fileclient.FileClient fileClient)
           
 
Method Summary
private  void addOpenFile(plp.presentation.fileclient.RegularFile file)
           
private  void addOpenInputStream(plp.presentation.fileclient.RegularFile file, java.io.InputStream stream)
           
private  void addOpenOutputStream(plp.presentation.fileclient.RegularFile file, java.io.OutputStream stream)
           
 void closeFile(int fileReference)
           
 int createFile(java.lang.String url)
           
 java.lang.String deleteDirectory(java.lang.String url)
           
 java.lang.String deleteFile(java.lang.String url)
           
 java.util.ArrayList functions()
           
 DirectoryAnswer getDirectory(java.lang.String url)
           
 FileAnswer getFile(java.lang.String url)
           
 plp.presentation.fileclient.FileClient getFileClient()
           
private  plp.presentation.fileclient.RegularFile getOpenFile(int refNumber)
           
private  java.util.Map getOpenFiles()
           
private  java.io.InputStream getOpenInputStream(plp.presentation.fileclient.RegularFile file)
           
private  java.util.Map getOpenInputStreams()
           
private  java.io.OutputStream getOpenOutputStream(plp.presentation.fileclient.RegularFile file)
           
private  java.util.Map getOpenOutputStreams()
           
 java.util.ArrayList interfaces()
           
 boolean isConnected()
           
 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!
 java.lang.String makeDirectory(java.lang.String url)
           
private  java.lang.String makeEpocUrl(java.lang.String url)
           
 int openFile(java.lang.String url)
           
 FileContentAnswer read(int fileReference, int length)
           
private  void removeOpenFile(plp.presentation.fileclient.RegularFile file)
           
private  void removeOpenOutputStream(plp.presentation.fileclient.RegularFile file)
           
private  void removeOpenStream(plp.presentation.fileclient.RegularFile file)
           
 java.lang.String rename(java.lang.String sourceUrl, java.lang.String destinationUrl, boolean overwrite)
           
private  void setFileClient(plp.presentation.fileclient.FileClient client)
           
 java.lang.String write(int fileReference, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

LinPochFileService

public LinPochFileService(plp.presentation.fileclient.FileClient fileClient)
Method Detail

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)